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
- Docker pull nginx:1.22.1-alpine
- docker save -o /home/projects/nginx_image.tar nginx:1.22.1-alpine
Next Copy that file and place into your location
- chmod 644 /home/projects/nginx_image.tar
- Copy the file to the location
- Then tun
- docker load -i /home/project/nginx_image.tar