Docker playlist
• Playlist
How to export Docker Containers?
How to import Exported Tar file an image?
What is use of export and import feature in docker containers?
Today i will demonstrate export and import feature of docker containers.
Docker export
Description
Export a container’s filesystem as a tar archive
Usage
docker export [OPTIONS] CONTAINER
Extended description
The docker export command does not export the contents of volumes associated with the container. If a volume is mounted on top of an existing directory in the container, docker export will export the contents of the underlying directory, not the contents of the volume.s
--output , -o Write to a file, instead of STDOUT
$ docker export red_panda (greaterthan angle bracket symbol) latest.tar
or
$ docker export --output="latest.tar" red_panda
---------------------------------------------------------------
docker import
Description
Import the contents from a tarball to create a filesystem image
Usage
docker import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]
$ docker import /path/to/exampleimage.tgz
----------------------------------------------------------
To extract tar file & check its content
$ mkdir Ubuntu && tar -xf mybackup.tar -C Ubuntu
--------------------------------------------
Reference
https://docs.docker.com/engine/refere...
#dockertutorials #docker #dockerbasiccommands
Watch video How to Export Docker Container? online without registration, duration hours minute second in high quality. This video was added by user One Minute Notes 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 9,066 once and liked it 45 people.