Docker image, without Internet


Let's assume, you wish to run a K8s pod with Docker container on a host, where there is no Internet. This blog will describe steps 

Run below command on another host, where Internet connection is present. 

docker save -o /

Then transfer to target host using FTP or SCP

At target host, run following command

docker load -i

Now make sure, at YAML file for pod or deployment, you add below line

imagePullPolicy: IfNotPresent

0 comments:

Post a Comment