作者 ZhengBing He

sh

不能预览此文件类型
#!/bin/bash
# 读取配置文件
source env.sh
docker build -t $IMAGE .
docker push $IMAGE
\ No newline at end of file
... ...
#!/bin/bash
# 读取配置文件
source env.sh
#docker build -t $IMAGE .
#docker push $IMAGE
docker stack down $APP_NAME
docker stack deploy -c docker-compose.yml --with-registry-auth $APP_NAME
#docker service scale aicc_app=2
\ No newline at end of file
... ...
#!/bin/bash
export IMAGE="haizibinbin/docker_class"
export APP_NAME="docker_class"
export SERVICE_NAME="docker_class_app"
... ...
#!/bin/bash
# 读取配置文件
source env.sh
docker service update --image $IMAGE --with-registry-auth $SERVICE_NAME
\ No newline at end of file
... ...