I´m struggeling with the activation of Remote API for docker.
Already tried to set configuration by the following command:
DOCKER_OPTS="-H tcp://127.0.0.1:2375"
in following files:
/etc/default/docker
and
/etc/init.d/docker.conf
Then restarted daemon by pkill and started again by docker daemon & but still not working for me. What did I miss?
root@ubuntu:~# docker info
Containers: 7
Running: 1
Paused: 0
Stopped: 6
Images: 24
Server Version: 1.11.2
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 139
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge null host
Kernel Version: 4.2.0-36-generic
Operating System: Ubuntu 14.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.78 GiB
Name: ubuntu
enter code here
Running docker daemon &
by hand ignores all configuration files. Those files are referenced when you start Docker with the OS upstart commands, or an /etc/init.d/docker start
. To bind to the port when starting by hand, you'd need to pass the argument there: docker daemon -H tcp://127.0.0.1:2375
. Note that this allows anyone with access to the local network full root access on your machine.