How to Export Docker Container?

preview_player
Показать описание
Docker 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

or
---------------------------------------------------------------
docker import
Description
Import the contents from a tarball to create a filesystem image
Usage
docker import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]
----------------------------------------------------------
To extract tar file & check its content
--------------------------------------------
Reference

#dockertutorials #docker #dockerbasiccommands
Рекомендации по теме
Комментарии
Автор

if possible please jenkins and nagios core par depth tutorial bnaye, thanks

amandeepsingh
Автор

Learn export and import feature of docker container ! For any queries ask here.

OneMinuteNotes