I am trying to configure my Bamboo environment to use a custom DOCKER_HOST for connecting to a Docker daemon running on a Linux machine. I have Docker installed on the machine, and I want to connect using the TCP socket.
Here are the steps I followed:
- Configured daemon.json:
I added the following configuration to /etc/docker/daemon.json to enable Docker to listen on TCP port 2375:
{
"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]
}
- Tried to Restart Docker:
After modifying the daemon.json file, I attempted to restart the Docker service:
sudo systemctl restart docker
- Encountered Error:
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
Question:
How can I resolve this issue and successfully configure the Docker daemon to listen on TCP in a Bamboo environment? Any insights on why the Docker service fails to restart after modifying daemon.json would be greatly appreciated.