You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd test_centos1
docker-compose up -d
...
# It's normal to start this time
docker exec -it testa1 ping testb1
PING testb1 (172.18.0.2): 56 data bytes
64 bytes from 172.18.0.2: seq=0 ttl=64 time=0.225 ms
64 bytes from 172.18.0.2: seq=1 ttl=64 time=0.127 ms
systemctl daemon-reload
service systemd-journald restart
run test_centos2
cd ../test_centos2
docker-compose up -d
# At this point, the docker network doesn't work
# docker exec -it testa2 ping testb2
ping: bad address 'testb2'
restart docker
service docker restart
...
# It's normal at this time
docker exec -it testa2 ping testb2
PING testb2 (172.19.0.3): 56 data bytes
64 bytes from 172.19.0.3: seq=0 ttl=64 time=0.150 ms
64 bytes from 172.19.0.3: seq=1 ttl=64 time=0.132 ms
The text was updated successfully, but these errors were encountered:
Repetition steps:
run test_centos1
vi /etc/systemd/journald.conf
Add the following configuration
restart journald
run test_centos2
restart docker
The text was updated successfully, but these errors were encountered: