Skip to content

Commit

Permalink
Fix the problem of container restart failure
Browse files Browse the repository at this point in the history
1. When restart docker, the kind container restart failed. Docker logs:
```
INFO: Detected IPv4 address: 172.18.0.2
INFO: Detected old IPv4 address: 172.18.0.2
ERROR: Have an old IPv4 address but no current IPv4 address (!)
```
2. After modifying the file and replacing it, the container starts normally:
```
docker cp entrypoint cluster-control-plane:/usr/local/bin/entrypoint
docker start cluster-control-plane
```
  • Loading branch information
panzhc authored Apr 30, 2020
1 parent fc058ce commit 9086edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/base/files/usr/local/bin/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ enable_network_magic(){
old_ipv6=$(cat /kind/old-ipv6)
echo "INFO: Detected old IPv6 address: ${old_ipv6}" >&2
# sanity check that we have a current address
if [[ -n $curr_ipv6 ]]; then
if [[ -z $curr_ipv6 ]]; then
echo "ERROR: Have an old IPv6 address but no current IPv6 address (!)" >&2
fi
# kubernetes manifests are only present on control-plane nodes
Expand Down

0 comments on commit 9086edb

Please sign in to comment.