mirror of https://github.com/docker/docs.git
This started as a "fix some links", but reading the section, I found various issues that could use some improvement. After that, I noticed that both the Windows and Mac pages had the same content, so I moved this to a common page instead. Note that there's still additional information that should likely be included (and perhaps a rewrite into "per topic" headings (containers, images, ...). Things that are missing; - backup/restore swarmkit configs - backup/restore swarmkit secrets - backup/restore CLI configuration, trust data etc. What I did in this pull request: - recommend pushing images to Docker Hub as the default approach to back up images (but kept `docker image save` as an alternative) - recommend `docker container commit` to save containers to an image, as doing so preserves both the container's configuration _and_ filesystem changes. `docker container export` only preserves the filesystem, but all other configuration is lost, which makes it hard to restore a container from it. Using `docker container commit` (committing the container to an image) also allows to follow the same procedure to backup containers as for images (both allowing them to be pushed to a registry, or to a file). - added some information about "wether or not" containers should be backed up, as it may not be needed to back up containers if all data is stored in volumes (best practice). - added some warnings regarding "sensitive data" (environment variables), and links to making repositories private before pushing. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
enterprise | ||
images | ||
backup-and-restore.md | ||
dashboard.md | ||
faqs.md | ||
index.md | ||
opensource.md |