Alternatively, if you do not wish to push to a repository:
-
Export the container to a tarball
docker export <CONTAINER ID> > /home/export.tar
-
Move your tarball to new machine
-
Import it back
cat /home/export.tar | docker import - some-name:latest
More Related Contents:
- How to run a cron job inside a docker container?
- How to change the default docker registry from docker.io to my private registry?
- How can I keep a container running on Kubernetes?
- How to push a docker image to a private repository
- How to get a list of images on docker registry v2
- Where can I find the sha256 code of a docker image?
- How to Dockerize windows application
- How to delete images from a private docker registry?
- How to pass ARG value to ENTRYPOINT?
- Add Insecure Registry to Docker
- How do I download Docker images without using the pull command?
- How to get remote access to a private docker-registry?
- How to pass arguments to a Dockerfile?
- How to SSH into Docker?
- How to define build-args in docker-compose?
- Docker Compose wait for container X before starting Y
- What is the difference between docker-compose ports vs expose
- How to run shell script on host from docker container?
- How to mount a single file in a volume
- Conditional COPY/ADD in Dockerfile?
- Docker build “Could not resolve ‘archive.ubuntu.com'” apt-get fails to install anything
- What is a dangling image and what is an unused image?
- What is the right way to add data to an existing named volume in Docker?
- Externalising Spring Boot properties when deploying to Docker
- What is the difference between ports and expose in docker-compose?
- How to fill user input for interactive command for “RUN” command?
- How to mount local volumes in docker machine
- How do I configure docker compose to expose ports correctly?
- how does Docker Embedded DNS resolver work?
- What is the purpose of the file “docker.sock”?