iTestee Containers How to Copy a Docker Image tas a .tar and re deploy it as a Docker Image

How to Copy a Docker Image tas a .tar and re deploy it as a Docker Image

The Story is behind a real situation. As usual I start to rebuild my docker image by using a Docker nginx:1.22.1-alpine. Then I realized that system cannot download the Docker image from the location due to a new policy implementation, but my Problem is I was already down the system for the new release.

What I did, I loged into a different server which is not effected by the policy and then ran the below command

  1. Docker pull nginx:1.22.1-alpine
  2. docker save -o /home/projects/nginx_image.tar nginx:1.22.1-alpine

Next Copy that file and place into your location

  1. chmod 644 /home/projects/nginx_image.tar
  2. Copy the file to the location
  3. Then tun
    • docker load -i /home/project/nginx_image.tar

Leave a Reply

Your email address will not be published. Required fields are marked *

+ 89 = 90
Powered by MathCaptcha

Related Post

Add Metabase to operate through the existing Nginx reverse proxy, utilizing the same SSL configuration.Add Metabase to operate through the existing Nginx reverse proxy, utilizing the same SSL configuration.

Deploy Metabase Container: In this setup, we have configured Metabase to run through the same Nginx server on port 3000. download docker image: docker pull metabase/metabase:latest Run Docker Container: docker