0
我在ubuntu 14.04
上安裝了docker,它工作正常。如何使用docker遠程API?
etc/default/docker
下,我有這樣的配置:
# Docker Upstart and SysVinit configuration file
# Customize location of Docker binary (especially for development testing).
#DOCKER="/usr/local/bin/docker"
# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
DOCKER_OPTS="-H unix:///var/run/docker.sock"
# If you need Docker to use an HTTP proxy, it can also be specified here.
#export http_proxy="http://127.0.0.1:3128/"
# This is also a handy place to tweak where Docker's temporary files go.
#export TMPDIR="/mnt/bigdrive/docker-tmp"
我跑docker run hello-world
然後var/run/docker.sock
下的文件不被寫入。
如何從該文件收聽以便使用remote api?
在此先感謝。
我沒有看到任何錯誤。 '此消息表明您的安裝似乎正常工作.' – OiRc
您能提供給我任何提示嗎? – OiRc
@OiRc您使用的是什麼碼頭版本?你試過請求來測試它是否會工作(如http://blog.inovia-conseil.fr/?p=215):'echo -e「GET/info HTTP/1.0rn」| sudo nc -U/var/run/docker.sock' – VonC