From e4a974527216a785f74ba50d0805b3eef5f2b128 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 23:56:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0openresty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build | 5 ++++- delete | 3 +++ exec | 3 +++ run | 3 +++ 4 files changed, 13 insertions(+), 1 deletion(-) 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 &