diff --git a/build b/build index bf31671..67756c8 100644 --- a/build +++ b/build @@ -1 +1,4 @@ -git reset --hard && git pull && chmod +x build && docker build . -t test:1.0 --no-cache +#!/bin/sh +#构建镜像 + +git reset --hard && git pull && chmod +x build delete exec run && docker build . -t test:1.0 --no-cache diff --git a/delete b/delete index f7bd5a8..9676150 100644 --- a/delete +++ b/delete @@ -1 +1,4 @@ +#!/bin/sh +#删除容器以及镜像 + docker stop test && docker rm test && docker rmi test:1.0 diff --git a/exec b/exec index f1d1b67..fa1dd82 100644 --- a/exec +++ b/exec @@ -1 +1,4 @@ +#!/bin/sh +#进入容器 + docker exec -it test /bin/sh diff --git a/run b/run index 90ec1c9..fd0821e 100644 --- a/run +++ b/run @@ -1 +1,4 @@ +#!/bin/sh +#创建运行容器 + docker run --name test -p 3000:3000 -p 2233:2233 -p 5000:5000 test:1.0 &