jenkins+docker+docker machine 远程部署

dotnet publish -c Release

docker build -t microtest:1.0 --build-arg microport=1000 -f "$WORKSPACE/MicroService/Dockerfile" "$WORKSPACE/MicroService"

docker login -u ci -p ci

docker tag microtest:1.0 ci/microtest:1.0

docker push ci/microtest:1.0

/usr/local/bin/docker-machine env host1

eval $(/usr/local/bin/docker-machine env host1)

docker pull ci/microtest:1.0

原文地址:https://www.cnblogs.com/chenyishi/p/9991071.html