Docker daemon socket The Docker daemon can listen for Docker Engine API requests through three different types of sockets: By default, a If you need to access the Docker daemon remotely, you need to enable Note : If you are using HTTPS encrypted sockets, keep in mind that only Modify docker.servicevim /usr/lib/systemd/system/docker.service In the ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0:2375 Reload the configuration file and start the service systemctl daemon-reload && systemctl restart docker
Check if the [root@izoq008ryseuupz ~]# netstat -antp | grep dockerd tcp6 0 0 :::2375 :::* LISTEN 22494/dockerd
test Next, test whether the Docker Engine API can be used through [root@izoq008ryseuupz ~]# curl http://localhost:2375/version {"Platform":{"Name":"Docker Engine - Community"},"Components":[{"Name":"Engine","Version":"19.03.13","Details":{"ApiVersion":"1.40","Arch":"amd64","BuildTime":"2020-09-16T17:02:21.000000000+00:00","Experimental":"false","GitCommit":"4484c46d9d","GoVersion":"go1.13.15","KernelVersion":"3.10.0-514.26.2.el7.x86_64","MinAPIVersion":"1.12","Os":"linux"}},{"Name":"containerd","Version":"1.3.7","Details":{"GitCommit":"8fba4e9a7d01810a393d5d25a3621dc101981175"}},{"Name":"runc","Version":"1.0.0-rc10","Details":{"GitCommit":"dc9208a3303feef5b3839f4323d9beb36df0a9dd"}},{"Name":"docker-init","Version":"0.18.0","Details":{"GitCommit":"fec3683"}}],"Version":"19.03.13","ApiVersion":"1.40","MinAPIVersion":"1.12","GitCommit":"4484c46d9d","GoVersion":"go1.13.15","Os":"linux","Arch":"amd64","KernelVersion":"3.10.0-514.26.2.el7.x86_64","BuildTime":"2020-09-16T17:02:21.000000000+00:00"}
Apparently the Docker Engine API is available via Let's test whether the Docker Engine API can be used remotely through the host IP. The page obtained by requesting IDEA can also be connected remotely. Possible issues If you cannot access it remotely, you may need to set up the server's firewall. It should be because port This is the end of this article about how to enable remote access for Docker. For more information about Docker remote access, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: When modifying a record in MySQL, the update operation field = field + string
>>: Front-end JavaScript operation principle
Basic syntax You can create a view using the CREA...
Test the efficiency of deleting a large number of...
Written in front There are two ways to upgrade My...
Two-column layout is often used in projects. Ther...
When we introduced nginx, we also used nginx to s...
To write a drop-down menu, click the button. The ...
Table of contents DragEvent Interface DataTransfe...
This article records the installation tutorial of...
Table of contents Write docker-compose.yml Run do...
question After the company migrated the server, t...
Written in front When we operate the database in ...
The complete syntax of the SELECT statement is: (...
Website compatibility debugging is really annoyin...
There are two ways to install nodejs in linux. On...
1》Be good at web design 2》Know how to design web p...