Docker Engine API 初始
Engine API 是 Docker Engine 提供的 HTTP API。它是 Docker 客户端用于与引擎通信的 API,因此 Docker 客户端可以做的所有事情都可以通过 API 来完成。 默认 Docker Engine API 只能通过 socket 访问,如果想通过端口访问则需要手动修改服务。 找到 docker.service 文件,通常在 /lib/systemd/system/docker.service,配置默认为 [Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com After=network-online.target firewalld.service containerd.service Wants=network-online.target Requires=docker.socket containerd.service [Service] Type=notify # the default is not to use systemd for cgroups because the delegate issues still # exists and systemd currently does not support the cgroup feature set required # for containers run by docker ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd....