Conversation
added a docker compose option when upgrading. Signed-off-by: jcstang <devjake@outlook.com>
| Do not attempt to upgrade (`pihole -up`) or reconfigure (`pihole -r`). | ||
|
|
||
| New images will be released for upgrades, upgrading by replacing your old container with a fresh upgraded image is the 'docker way'. Long-living docker containers are not the docker way since they aim to be portable and reproducible, why not re-create them often! Just to prove you can. | ||
| New images will be released for upgrades, upgrading by replacing your old container with a fresh upgraded image is the 'docker way'. Long-living docker containers are not the docker way since they aim to be portable and reproducible, why not re-create them often! **Just to prove you can.** |
There was a problem hiding this comment.
Why did you change the styling here?
There was a problem hiding this comment.
I just meant to change the styling for "Just to prove you can.". Thought an emphasis on this phrase would be impactful.
There was a problem hiding this comment.
| New images will be released for upgrades, upgrading by replacing your old container with a fresh upgraded image is the 'docker way'. Long-living docker containers are not the docker way since they aim to be portable and reproducible, why not re-create them often! **Just to prove you can.** | |
| New images will be released for upgrades, upgrading by replacing your old container with a fresh upgraded image is the 'docker way'. Long-living docker containers are not the docker way since they aim to be portable and reproducible, why not re-create them often! |
I think this could even be removed.
Co-authored-by: yubiuser <github@yubiuser.dev> Signed-off-by: jcstang <devjake@outlook.com>
| - This will help you avoid common problems due to any known issues with upgrading or newly required arguments or variables | ||
| - We will try to put common break/fixes at the top of this readme too | ||
| 1. Download the latest version of the image: `docker pull pihole/pihole` | ||
| 2. Throw away your container: `docker rm -f pihole` |
There was a problem hiding this comment.
| 2. Throw away your container: `docker rm -f pihole` | |
| 2. Throw away your container: `docker compose down` |
There was a problem hiding this comment.
We should probably switch this up for a compose command, too. Otherwise it doesn't make a lot of sense in the grand scheme of things.
There was a problem hiding this comment.
I'm undecided here... We have a few places suggesting docker run commands and arguments in the Docs and in the README:
- Docs page shows both commands: https://docs.pi-hole.net/docker/
- This table uses
docker runformat for all arguments; - this line shows a
docker runargument; - this line uses both (
docker runanddocker compose).
Maybe we could suggest both commands:
| 2. Throw away your container: `docker rm -f pihole` | |
| 2. Throw away your container: `docker rm -f pihole` or `docker compose down`, depending on how you started your container. |
And also change the step 3., adding:
-3. Start your container with the newer base image: `docker compose up -d`
+3. Start your container with the newer base image: `docker compose up -d` or `docker run <args>`There was a problem hiding this comment.
I would switch everything to compose syntax. Are users really running docker run by hand with all the necessary options/flags?
There was a problem hiding this comment.
Are users really running docker run
The trick is never to be surprised, and then they cannot surprise you.
There was a problem hiding this comment.
You can avoid the docker compose down step by using: docker compose pull && docker compose up --force-recreate
https://docs.docker.com/reference/cli/docker/compose/up/
Edit:
Or as a one-liner: docker compose up --force-recreate --pull always -d
This downloads the latest image, stops and removes the currently running container, creates a new one, and starts it.
added a docker compose option when upgrading.
Description
Added a line that talked about docker compose.
Motivation and Context
Clarify for users like me who use docker compose vs docker run.
How Has This Been Tested?
n/a
Types of changes
Checklist: