Symptoms
- After Docker extension upgrade to 1.6.3 version all containers are automatically published to 127.0.0.1 IP on host:
# docker ps --format '{{.ID}} {{.Names }} {{.Ports}}'
34b5670a1bbad phpmyadmin 127.0.0.1:8080->80/tcp, :::8080->80/tcp
8b25215d2e1b M2DB 127.0.0.1:33306->3306/tcp, :::33306->3306/tcp -
It is not possible to connect to a Docker container remotely
Cause
external issue.
Resolution
Note: the issue will not occur after Docker extension update to latest 1.6.4 version, but this is applicable only for non affected servers, if the Plesk server with Docker extension 1.6.3 has already a described issue, even after upgrade of Docker extension to 1.6.4 version, the steps below still should be applied.
- Log into the server via SSH.
- Using the vi text editor open the /etc/docker/daemon.json file.
- Remove the line below:
{"ip":"127.0.0.1"}
- Save changes
- Restart Docker service to apply the changes:
# systemctl restart docker
Note: if container is not running as expected after step №5, restart container manually with the command by replacing ContainerID with the ID of Docker container:
# docker container restart ContainerID