From 557fb8c0b8f610f700d9f523a06d4230a8f0dcd2 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 8 Sep 2021 23:06:57 +0000 Subject: [PATCH] updated docker/README.md --- codepot/docker/README.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/codepot/docker/README.md b/codepot/docker/README.md index fd97385a..bbf3fc00 100644 --- a/codepot/docker/README.md +++ b/codepot/docker/README.md @@ -1,8 +1,17 @@ If you require the root privilege to build a docker image, specify sudo in DOCKER. - make rocky8 DOCKER="sudo docker" +``` +make rocky8 DOCKER="sudo docker" +``` -Run the service - docker run -dit --restart unless-stopped --name codepot -p 7000:80 codepot:ubnt20.04 +Run the service like +``` +docker run -dit --restart=unless-stopped --name=codepot codepot:ubnt20.04 +docker run -dit --restart=unless-stopped --name=codepot -p 80:80 codepot:ubnt20.04 +docker run -dit --restart=unless-stopped --name=codepot -p 80:80 -v /home/container-data/codepot:/var/lib/codepot codepot:ubnt20.04 +docker run -dit --restart=unless-stopped --name=codepot -p 1200:1200 -v /home/container-data/codepot:/var/lib/codepot codepot:ubnt20.04 --port 1200 --hide-index-page=yes --https-redirected=yes +``` -Run the shell on the existing container - docker exec -it codepot /bin/bash +Run the shell on the existing container for in-container management. +``` +docker exec -it codepot /bin/bash +```