6 lines
212 B
Bash
6 lines
212 B
Bash
|
echo ====暂停容器开始=======
|
||
|
docker rm -f devops-test
|
||
|
echo ====开始部署=======
|
||
|
docker build -t devops-test:1.0 .
|
||
|
docker run -d -p 8080:8080 --name devops-test devops-test:1.0
|
||
|
echo ====部署成功======
|