docker-compose能否指定 daemon socket


docker 里边有-H, --host=[]这个项,可以指定socket, 这样就可以运行docker -H 192.168.1.19:2375 ps,可以查看其他机器的docker了啊,
问下docker-compose是不是也有类似的功能。
已邀请:

tifayuki - Tutum 工程师

赞同来自: szqh97


设置环境变量DOCKER_HOST

hokingyang

赞同来自: DockOne


macproc:~ macbookpro$ docker-compose
Fast, isolated development environments using Docker.

Usage:
docker-compose [options] [COMMAND] [ARGS...]
docker-compose -h|--help

Options:
--verbose Show more output
--version Print version and exit
-f, --file FILE Specify an alternate compose file (default: docker-compose.yml)
-p, --project-name NAME Specify an alternate project name (default: directory name)

Commands:
build Build or rebuild services
help Get help on a command
kill Kill containers
logs View output from containers
port Print the public port for a port binding
ps List containers
pull Pulls service images
rm Remove stopped containers
run Run a one-off command
scale Set number of containers for a service
start Start services
stop Stop services
restart Restart services
up Create and start containers
macproc:~ macbookpro$

要回复问题请先登录注册