I am trying to enable and use the Docker Engine API on Google Compute Engine Container Optimized OS, so that I can trigger docker exec
commands over HTTP.
However, when I add the TCP host { "hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"] }
in /etc/docker/daemon.json
, I'm getting the following systemctl error output after restarting the docker service:
Process: 277059 ExecStart=/usr/bin/dockerd --registry-mirror=https://mirror.gcr.io --host=fd:// --containerd=/var/run/containerd/containerd.sock $DOCKER_OPTS (code=exited, status=1/FAILURE
Thanks for your answers!