updated README.md

This commit is contained in:
hyung-hwan 2022-08-22 01:12:27 +00:00
parent 84ffbf88b6
commit fccf4296eb

View File

@ -14,8 +14,8 @@ You may pull the image from the Docker Hub and run a container from the image.
For example, you may run the following commands to start the container.
```
$ docker pull hyunghwan/codepot:ubnt20.04
$ docker run -dit --restart=unless-stopped --name=codepot -p 1080:1080 hyunghwan/codepot:ubnt20.04 --port=1080 --https-redirected=yes --hide-index-page=yes
$ docker pull hyunghwan/codepot:ubnt
$ docker run -dit --restart=unless-stopped --name=codepot -p 1080:1080 hyunghwan/codepot:ubnt --port=1080 --https-redirected=yes --hide-index-page=yes
```
Then you can open a web browser to http://docker-host-address:1080/ to access the codepot system.
@ -41,7 +41,7 @@ If you like to keep the data persistenly on the docker host, map /var/lib/codepo
directory or a volume on the host when starting the container.
```
$ docker run -dit --restart=unless-stopped --name=codepot -p 1080:1080 -v ${HOME}/codepot-data:/var/lib/codepot hyunghwan/codepot:ubnt20.04 --port=1080 --https-redirected=yes --hide-index-page=yes
$ docker run -dit --restart=unless-stopped --name=codepot -p 1080:1080 -v ${HOME}/codepot-data:/var/lib/codepot hyunghwan/codepot:ubnt --port=1080 --https-redirected=yes --hide-index-page=yes
```
If you run this command, codepot stores all data under ${HOME}/codepot-data from the host