Comments (4)
Just wait. There is a container called watchtower. It will update all images.
If you don't want that. Or fine tune it a bit.
In group_vars/all.yml
you can define which image version will be used.
e.g. with docker_postgres_image: 10-alpine
watchtower will update postgres release 10 based on alpine. actual this is 10.11-alpine. if there will be a version 10.12-alpine you'll get the update. updates of the underlying alpine images are also included.
here
you find the schedule for watchtower.
find these container labels
to turn on and off the auto update of each container.
don't update traefik to version 2. the config is incompatible with version 1.7.
if you want to upgrade a container image like postgres or redis. make a backup. change the image version in group_vars/all.yml and just run this role
nextcloud_on_docker/nextdocker.yml
Line 11 in 082b756
copy nextdocker.yml
and delete all other roles.
it should be safe to just run nextcdocker.yml without modification because the playbook should be idempotent. but this not tested very well.
from nextcloud_on_docker.
Perfect. I wasn't sure if the nextcloud container had the watchtower label but using docker inspect
I can see it's got it. 😄 Thanks for the thorough answer.
from nextcloud_on_docker.
If I may chime in here, I also saw the update from 18.0.0 to 18.0.1 today, but I cant find a label on nextcloud:fpm-alpine:
$ grep com.centurylinklabs.watchtower.enable roles/docker_container/tasks/*
roles/docker_container/tasks/adminer.yml: com.centurylinklabs.watchtower.enable: "true"
roles/docker_container/tasks/collabora.yml: com.centurylinklabs.watchtower.enable: "true"
roles/docker_container/tasks/database.yml: com.centurylinklabs.watchtower.enable: "true"
roles/docker_container/tasks/database.yml: com.centurylinklabs.watchtower.enable: "true"
roles/docker_container/tasks/nginx.yml: com.centurylinklabs.watchtower.enable: "true"
roles/docker_container/tasks/onlyoffice.yml: com.centurylinklabs.watchtower.enable: "true"
roles/docker_container/tasks/portainer.yml: com.centurylinklabs.watchtower.enable: "true"
roles/docker_container/tasks/redis.yml: com.centurylinklabs.watchtower.enable: "true"
roles/docker_container/tasks/traefik.yml: com.centurylinklabs.watchtower.enable: "true"
roles/docker_container/tasks/traefik.yml: com.centurylinklabs.watchtower.enable: "true"
$ docker inspect nextcloud:fpm-alpine |grep -i labels -A2
"Labels": {},
"StopSignal": "SIGQUIT"
},
--
"Labels": null,
"StopSignal": "SIGQUIT"
},
So I tried to add the watchtower.enable line next to the nextcloud_traefik_label, but then Ansible bailed out with syntax errors.
Finally I removed the image and ran nextcloud.yml, so it pulled the new image, but why isn't it using watchtower?
from nextcloud_on_docker.
Sorry. The nextcloud container is different. Because there are two possible images. fpm-php and apache. The later has traefik labels. If you run fpm-php these labels apply to the nginx container.
Therefore the nextcloud container labels are here in variable
The switch which labels are used is coded here.
from nextcloud_on_docker.
Related Issues (20)
- Ansible need to be executed on docker host and other small problems HOT 1
- Broken App Install HOT 14
- Nginx Disappeared after nextcloud update? HOT 5
- Subdirectory /nextcloud instead of subdomain HOT 1
- Watchtower potentially broke installation HOT 2
- 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE
- Openning .odt/.ods/... files does not redirect to Collabora HOT 2
- Question HOT 1
- Typo in 'prepare_system.sh' HOT 1
- Setup failing on steps after [nextcloud_config : updating maintenance htaccess] HOT 2
- How to disable HTTPS HOT 2
- Lower reserved memory ubuntu HOT 2
- Restoring postgres db with restiq into fresh install nextcloud_on_docker HOT 4
- Not Understanding Where to Have docker-compose.yml
- Traefik TLS challenge failure
- Questions about the installation steps HOT 2
- Details on upgrading when next version of nextcloud releases HOT 2
- Integrate Nextcloud with Protonmail Bridge HOT 6
- traefik seems to generate new self-signed certificates after random intervals HOT 3
- Working Environment/Versions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextcloud_on_docker.