【发布时间】:2020-02-11 21:55:57
【问题描述】:
我正在尝试在 Mac 上使用 docker-machine 更新 docker 映像的环境变量。 到目前为止没有运气。 我检查了包括这个https://github.com/docker/compose/issues/4651 在内的问题。问题是 当我跑步时
docker-machine env machine-staging
我明白了
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://*.*.*.*:2376"
export DOCKER_CERT_PATH="/Users/b/.docker/machine/machines/machine-staging"
export DOCKER_MACHINE_NAME="machine-staging"
# Run this command to configure your shell:
# eval $(docker-machine env machine-staging)
我尝试了unset 命令,但仍然无效。
我希望能够添加一个新设置,例如COMPOSE_TLS_VERSION
【问题讨论】:
标签: docker docker-compose docker-machine