I was recently tasked with an issue to allow an application, deployed using
docker-compose, to launch containers
and I did not want to go the docker-in-docker route.
I then figured that using the Docker Remote API to provide this functionality would be sufficient, however,
I had difficulties on how to enable the
tcp Socket on distributions running
systemd like Ubuntu 16.04.2, as adding
/etc/default/docker does not work.
This is what I pieced together from the Internet:
- Edit the file
- Append the following to the
ExecStart=/usr/bin/dockerd -H fd://line:
- Test with
The above should respond with
Hope someone out there finds this helpful.
NOTE: This provides un-encrypted and un-authenticated direct access to the daemon.