macos
macos copied to clipboard
Backup and transfer to other host
Operating system
22.04
Description
What is the best way to backup a docker container and transfer to new host?
I see this possibilities: - docker way
- docker commit NAME_OF_INSTANCE mycontainerimage
- docker save -o mycontainerimage.tar mycontainerimage
- docker load -i ./mycontainerimage.tar
- docker create --name my-nginx-container -p 8080:80 mycontainerimage
- docker start my-nginx-container
Apple way:
- Somehow backup the apple system with system tools (I dont know yet) and restore when running a new docker container
Docker compose
not relevant
Docker log
not relevant
Screenshots (optional)
No response