Here is what you need to do in order to set up the Docker server exposed via REST endpoint on Ubuntu 14.04.
Install Docker
Here is the Official Ubuntu installation documentation in the nutshell - to install Docker on Ubuntu just type the following command into your shell:curl -s https://get.docker.io/ubuntu/ | sudo sh
Expose Docker via HTTP
By default Docker is exposed only via the Unix sockets. You can change it with the additional -H (host) option.
sudo sh -c 'echo "DOCKER_OPTS=\"-H unix:///var/run/docker.sock -H tcp://127.0.0.1:2375\"" > /etc/default/docker' sudo service docker restart
Hey! The proper way to add a user to a group is either `# usermod -a -G docker rylee` where `rylee` is your username, or `# gpasswd -a rylee docker`, where rylee is the username. Manually editing /etc/group (and /etc/gshadow) is *not* recommended.
ReplyDeleteGood point! Fixed :) . Many thanks for the comment!
ReplyDelete