-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update README.md #1848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Update README.md #1848
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -243,7 +243,7 @@ The standard Pi-hole customization abilities apply to this docker, but with dock | |||||||||
|
|
||||||||||
| 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.** | ||||||||||
|
|
||||||||||
| 0. Read the release notes for both this Docker release and the Pi-hole release | ||||||||||
| - This will help you avoid common problems due to any known issues with upgrading or newly required arguments or variables | ||||||||||
|
|
@@ -252,7 +252,7 @@ New images will be released for upgrades, upgrading by replacing your old contai | |||||||||
| 2. Throw away your container: `docker rm -f pihole` | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably switch this up for a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm undecided here... We have a few places suggesting
Maybe we could suggest both commands:
Suggested change
And also change the step -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. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would switch everything to compose syntax. Are users really running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The trick is never to be surprised, and then they cannot surprise you. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can avoid the https://docs.docker.com/reference/cli/docker/compose/up/ Edit: Or as a one-liner: This downloads the latest image, stops and removes the currently running container, creates a new one, and starts it. |
||||||||||
| - **Warning:** When removing your pihole container you may be stuck without DNS until step 3; **`docker pull`** before **`docker rm -f`** to avoid DNS interruption. | ||||||||||
| - If you care about your data (logs/customizations), make sure you have it volume-mapped or it will be deleted in this step. | ||||||||||
| 3. Start your container with the newer base image: `docker run <args> pihole/pihole` (`<args>` being your preferred run volumes and env vars) | ||||||||||
| 3. Start your container with the newer base image: `docker run <args> pihole/pihole` (`<args>` being your preferred run volumes and env vars). **OR** `docker compose up -d` if you have a `docker-compose.yml` file. | ||||||||||
jcstang marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
|
|
||||||||||
| **Why is this style of upgrading good?** | ||||||||||
|
|
||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change the styling here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could even be removed.