I followed your question and had also no idea how to update a container,
without using "extensively" the CLI (i am not that firm with it ) or completely delete and reconfigure via QNAP Container Station.
I could REALLY REALLY REALLY (did i already said REALLY?) recommend you, to use "Portainer" for this!
Portainer brings you a complete new understanding of handling containers with docker!!!(!!!!!!!!!)
Portainer is a WEB-GUI for docker. You are able to edit every container with ease, can double it for testing purpose, add or remove folder-shares/-mounts or whatever you want.
And this, without remembering all your configurations and deletion and re-configuration like you have to do with QNAP
(If you are not that familiar with CLI or docker-cli like me).
Start here with docker for your QNAP:
https://qnapclub.eu/en/qpkg/466
and here to tell portainer to use the lokal installed docker-engine "from qnap":
viewtopic.php?f=320&t=133975&start=15#p646136
here are my scrots from evernote how it should looks like
Another tipp for "backup" (and editing!) your prefs/containers is "runlike".
With runlike you are able to output all taken configs of each single container and if something crashes,
you have your 1:1 "one-liner" for CLI to reinstall your container.
how to use in QNAP-CLI:
Code: Select all
docker run -v /var/run/docker.sock:/var/run/docker.sock assaflavie/runlike -p motioneye
# while motioneye is a container you want the output for
Code: Select all
docker run \
--name=motioneye \
--env="TIMEZONE=Europe/Berlin" \
--env="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
--env="MOTIONEYE_VERSION=0.36.1" \
--volume="/share/Container/motioneye/media:/home/nobody/media:rw" \
--volume="/share/Container/motioneye/config:/config:rw" \
-p 0.0.0.0:8082:8081/tcp \
-p 0.0.0.0:8766:8765/tcp \
--detach=true \
-t \
jshridha/motioneye:latest \
/sbin/my_init
If you have any question about this, feel free to ask
kind regards and,
hopefully having a lot of fun in a completely "new world" of docker
Sven