Pull docker ubuntu 18.04 & 16.04 image

Docker image download ubuntu 18.04 & 16.04 OS
sudo docker pull ubuntu:16.04
or,
sudo docker pull ubuntu:18.04

Run docker container
sudo docker run -itd ubuntu:18.04 /bin/bash


Error during image pull

Error response from daemon: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/18.04: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 127.0.0.53:53: no such host

Solutions:
I have found docker image url are not getting resolved from my machine so i have updaed my machine DNS with 8.8.8.8 and it worked.
Share on Google Plus

About Md. Shahzad Alam

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment