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
The application of containers is becoming more an...
Recently, I need to frequently use iframe to draw ...
Table of contents 1. Build the operating environm...
By default, the width and height of the header ar...
This article shares the specific code of the vue3...
I just finished installing MySQL 5.7.19 in the ea...
Use of stored procedure in parameters IN paramete...
Preface Believe me, as long as you remember the 7...
This article records some major setting changes w...
What? What star coat? Well, let’s look at the pic...
Table of contents Preface Computed properties Int...
Table of contents vue - Use swiper plugin to impl...
This is an article about website usability. The a...
1. position : fixed Locked position (relative to ...
1. The first parameter props of the setUp functio...