codepot/docker/README.md

19 lines
758 B
Markdown
Raw Normal View History

If you require the root privilege to build a docker image, specify sudo in DOCKER.
2021-09-08 23:06:57 +00:00
```
2022-08-17 01:02:04 +00:00
make rocky DOCKER="sudo docker"
make ubnt DOCKER="sudo docker"
2021-09-08 23:06:57 +00:00
```
2021-09-08 23:06:57 +00:00
Run the service like
```
2022-08-17 01:02:04 +00:00
docker run -dit --restart=unless-stopped --name=codepot codepot:ubnt
docker run -dit --restart=unless-stopped --name=codepot -p 80:80 codepot:ubnt
docker run -dit --restart=unless-stopped --name=codepot -p 80:80 -v /home/container-data/codepot:/var/lib/codepot codepot:ubnt
docker run -dit --restart=unless-stopped --name=codepot -p 1200:1200 -v /home/container-data/codepot:/var/lib/codepot codepot:ubnt --port 1200 --hide-index-page=yes --https-redirected=yes
2021-09-08 23:06:57 +00:00
```
2020-12-20 05:14:48 +00:00
2021-09-08 23:06:57 +00:00
Run the shell on the existing container for in-container management.
```
docker exec -it codepot /bin/bash
```