20 lines
757 B
Markdown
20 lines
757 B
Markdown
|
# Docker
|
||
|
|
||
|
## Build it manually
|
||
|
`docker build -t calendar-fetcher .`
|
||
|
|
||
|
## Run it in a Docker Container
|
||
|
1. Adjust the parameters in `Dockerfile`
|
||
|
1. Build the docker image with `docker build -t calendar-fetcher .`
|
||
|
1. Run it with `docker run -it --rm -v /volume1/web/calendar-fetcher:/data --name my-calendar-fetcher -p 8014:8014 --label=com.centurylinklabs.watchtower.enable=false calendar-fetcher`
|
||
|
1. Call it in a webbrowser: `http://localhost:8014`
|
||
|
|
||
|
## replace existing Docker Container (Update)
|
||
|
```
|
||
|
docker build -t calendar-fetcher .
|
||
|
docker stop calendar-fetcher
|
||
|
docker rm calendar-fetcher
|
||
|
docker run -d -P --name calendar-fetcher -p 8014:8014 -v /volume1/web/smartmirror/data:/data --label=com.centurylinklabs.watchtower.enable=false calendar-fetcher
|
||
|
```
|
||
|
|