Import and Export Docker images for windows container

Import and Export Docker images for windows container

Import and Export Docker images for windows container

In this blog, we will show you how to import and export docker images from one server to another using docker commands.

 

REQUIREMENTS

  • We need two windows container host with docker service installed.

 

In this demonstration, we are using two windows container host as container1 with IP 192.168.232.80 and container2 with IP 192.168.232.81.

 

EXPORT THE IMAGE

  • Login into container1 host and create a new folder named images under c:\ drive using below command

New-Item -ItemType directory -Path c:\ -name images

import and export docker images

 

  • Type docker images command to list the available images on the server.

import and export docker images

 

  • In the demo, we are exporting the assistanz247/nanoserver-iis:latest image. To export the image use the below command.

SYNTAX: docker save -o c:\images\nanoserver.tar assistanz247/nanoserver-iis

docker save – Sub command to save the docker images.

-o – To specify the out file path

c:\images\nanoserver.tar – The path and the filename to save the image.

nanoserver-iis – Image Name

import and export docker images

 

  • Once it’s complete. The nanoserver.tar file will be available on c:\images folder.

import and export docker images

 

IMPORT DOCKER IMAGE

  • Login into Container2 server and access the c:\images folder from container 1 through the network share.

import and export docker images

import and export docker images

 

  • Copy the nanoserver.rar to local folder named c:\temp

import and export docker images

 

import and export docker images

 

  • To import the image to docker, use the below command.

docker load –i c:\temp\nanoserver.tar

docker load – This is the sub-command for docker to import the image.

-i – To specify the TAR file path.

c:\temp\nanoserver.tar – The full path for TAR file.

import and export docker images

 

  • Type docker images command to verify the image availability.

import and export docker images

 

VERIFICATION

 

  • Launch a new container using the assistanz247/nanoservder-iis:latest image for verification.

import and export docker images

 

  • Image launch successfully without any problem.

import and export docker images

 

VIDEO

Thanks for reading this blog. We hope it was useful for you to learn how to import and export the windows container images.

Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on linkedin
LinkedIn
More Interested Related Posts
zfs pool usage

ZFS Pool and Dataset Usage

ZFS Pool and Dataset Usage   I am back with another blog to provide the useful script to the Freebsd users to determine the zpool

Assistanz Networks

Installing Zabbix Agent in FreeBSD 12.0

Zabbix Agent Installation and Configuration Guide on FreeBSD 12.0   Zabbix is an open-source monitoring software tool for diverse IT components, including networks, servers, virtual

DirectAdmin Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk
$ 99 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • NDA & SLA
  • SLA Review Meetings
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation
  •  

Platinum Support

24/7 Proactive Support
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Support

$ 30 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response Time
  • 4 Hours Resolution time for the Possible Issues
  • Security and Performance Optimization
  • React to Customers queries
  • Simple SignUp Process
  • Instant Account Activation
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support