However to transcript Docker photographs from 1 adult to different with out utilizing a repository

However to transcript Docker photographs from 1 adult to different with out utilizing a repository

However bash I transportation a Docker representation from 1 device to different 1 with out utilizing a repository, nary substance backstage oregon national?

I make my ain representation successful VirtualBox, and once it is completed I attempt to deploy to another machines to person existent utilization.

Since it is based mostly connected my ain basal representation (similar Reddish Chapeau Linux), it can't beryllium recreated from a Dockerfile. My Dockerfile isn't easy transportable.

Are location elemental instructions I tin usage? Oregon different resolution?


You volition demand to prevention the Docker representation arsenic a tar record:

docker save -o <path for generated tar file> <image name>

Past transcript your representation to a fresh scheme with daily record transportation instruments specified arsenic cp, scp, oregon rsync (most well-liked for large information). Last that you volition person to burden the representation into Docker:

docker load -i <path to image tar file>

You ought to adhd filename (not conscionable listing) with -o, for illustration:

docker save -o c:/myfile.tar centos:16

your representation syntax whitethorn demand the repository prefix (:newest tag is default)

docker save -o C:\path\to\file.tar repository/imagename

PS: You whitethorn demand to sudo each instructions.


Transferring a Docker representation by way of SSH, bzipping the contented connected the alert:

$ docker save <image> | bzip2 | ssh user@host docker load

Line that docker load mechanically decompresses pictures for you. It helps gzip, bzip2 and xz.

It's besides a bully thought to option pv successful the mediate of the tube to seat however the transportation is going:

$ docker save <image> | bzip2 | pv | ssh user@host docker load

(Much data astir pv: location leaf, male leaf).

  • Usage gzip/gunzip once your web is accelerated and you tin add astatine 10 Mb/s and much -- due to the fact that bzip received't beryllium capable to compress accelerated adequate, gzip volition beryllium overmuch sooner (Acknowledgment @Thomas Steinbach)

  • Usage xz if you're connected truly dilatory web (e.g. cellular net). xz presents a larger compression ratio (Acknowledgment @jgmjgm)

Besides see utilizing this neat device by @vitalets:

$ docker save <image> | gzip | DOCKER_HOST=ssh://user@remotehost docker load 

Mistake producing weblog contented

Ultimate GROK 4 Guide 2025: How to Use GROK For Beginners

Ultimate GROK 4 Guide 2025: How to Use GROK For Beginners from Youtube.com

Previous Post Next Post

Formulario de contacto