Plesk for Linux
kb: technical
ext: docker
Applicable to:
- Plesk for Linux
Symptoms
- Plesk Obsidian running on a Linux-based operating system
- Docker containers are not accessible via the public server IP address and only run on localhost (127.0.0.1)
- The Docker extension in Plesk > Extensions > My Extensions is version 1.6.3 or above
- The line
{"ip":"127.0.0.1"}
is present within the/etc/docker/daemon.json
file:
# root@server:~# cat /etc/docker/daemon.json
{"ip":"127.0.0.1"}
Cause
The line {"ip":"127.0.0.1"}
in /etc/docker/daemon.json
makes the ports of all Docker containers only accessible on a local server level.
This issued is tied to the changes mentioned in the following Plesk Change Log entries:
Resolution
In order to resolve the issue, you should follow these steps:
1. Log into the server via SSH as the root user
2. Open the /etc/docker/daemon.json
file with your favorite command-line text editor
3. Remove the following line:
{"ip":"127.0.0.1"}
4. Save the changes
5. Restart the Docker service by running the following command:
# systemctl restart docker
6. Make sure the containers are started by looking at their status in the Docker Plesk extension
Comments
0 comments
Please sign in to leave a comment.