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
Смотрите видео How to Export Docker Container? онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь One Minute Notes 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 9,066 раз и оно понравилось 45 людям.