Menu

Save, Load and Transfer Docker Image
📰

Save, Load and Transfer Docker Image

DEV Community: docker·Janak Shrestha·about 6 hours ago
#BK3vGELM
#devtodocker#devto#dev#docker#enter
Reading 0:00
15s threshold

One of the DevOps team members was working on to create a new custom docker image on App Server 1 in Stratos DC. He is done with his changes and image is saved on same server with name apps:nautilus. Recently a requirement has been raised by a team to use that image for testing, but the team wants to test the same on App Server 3. So we need to provide them that image on App Server 3 in Stratos DC.

a. On App Server 1 save the image apps:nautilus in an archive.

b. Transfer the image archive to App Server 3.

c. Load that image archive on App Server 3 with same name and tag which was used on App Server 1.

Note: Docker is already installed on both servers; however, if its service is down please make sure to start it.

Connect to App Server 1

ssh tony@stapp01 sudo -i

Enter fullscreen mode

Exit fullscreen mode

Password for tony: Ir0nM@n

Verify the Image Exists

docker images | grep apps

Enter fullscreen mode

Exit fullscreen mode

Output:

apps nautilus 4aa886374dbd About a minute ago 145MB

Enter…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.