Pull Docker Image

Ticker

6/recent/ticker-posts

Pull Docker Image

Question : Nautilus project developers are planning to start testing on a new project. As per their meeting with the DevOps team, they want to test containerized environment application features. As per details shared with DevOps team, we need to accomplish the following task:

a. Pull busybox:musl image on App Server 2 in Stratos DC and re-tag (create new tag) this image as busybox:blog.

Please Note :-  Perform the below commands based on your question server,  user name & other details that might differ. So please read the task carefully before executing it.
 All the Best 👍

Solution:  

 1. At first login on to app server &  Switch to root user

thor@jump_host ~$ ssh steve@stapp02

The authenticity of host 'stapp02 (172.16.238.11)' can't be established.

ECDSA key fingerprint is SHA256:fzCGEKYHGEwcxIPMAuOQjSusH3ghcxAO4gC9As6JIF8.

ECDSA key fingerprint is MD5:37:01:a0:d3:f1:da:25:59:b9:3f:a1:1a:1f:87:b1:a6.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'stapp02,172.16.238.11' (ECDSA) to the list of known hosts.

steve@stapp02's password:

[steve@stapp02 ~]$ sudo su -

We trust you have received the usual lecture from the local System

Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.

    #2) Think before you type.

    #3) With great power comes great responsibility.

[sudo] password for steve:

[root@stapp02 ~]#

 2. Run the Below command to check existing docker images 

[root@stapp02 ~]# docker images

REPOSITORY   TAG       IMAGE ID   CREATED   SIZE

[root@stapp02 ~]#

 3. Run the Below command to  pull the docker image on the server   

[root@stapp02 ~]# docker pull busybox:musl

musl: Pulling from library/busybox

d4addce9d16f: Pull complete

Digest: sha256:b33e18eebd5e31e80b5e50dabdb536f08a49b1eb01605b3f806f95f11579fb54

Status: Downloaded newer image for busybox:musl

docker.io/library/busybox:musl

[root@stapp02 ~]#

 


 4. Now retag ( create new tag ) as per the task       
 

[root@stapp02 ~]# docker image tag busybox:musl  busybox:blog

[root@stapp02 ~]#

[root@stapp02 ~]# docker images

REPOSITORY   TAG       IMAGE ID       CREATED       SIZE

busybox      blog      9ad2c435a887   7 weeks ago   1.43MB

busybox      musl      9ad2c435a887   7 weeks ago   1.43MB

[root@stapp02 ~]# 


5.  Click on Finish & Confirm to complete the task successfully

Happy Learning!!!!


Apart from this if you need more clarity,  I have made a  tutorial video on this , please go through and share your comments. Like and share the knowledge









Post a Comment

0 Comments

Latest Posts

Kodekloud Server's Login Credentials