root@template:~# docker pull centos
Using default tag: latest
latest: Pulling from library/centos
a1d0c7532777: Pull complete
Digest: sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55bd6c473f432b177
Status: Downloaded newer image for centos:latest
docker.io/library/centos:latest
root@template:~# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
mysql latest 38643ad93215 3 days ago 446MB
wordpress latest 826140609178 2 weeks ago 609MB
centos latest 5d0da3dc9764 10 months ago 231MB
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~# docker image tag centos ipadfordennis/myos:1.0
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
mysql latest 38643ad93215 3 days ago 446MB
wordpress latest 826140609178 2 weeks ago 609MB
ipadfordennis/myos 1.0 5d0da3dc9764 10 months ago 231MB
centos latest 5d0da3dc9764 10 months ago 231MB
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~# docker push ipadfordennis/myos:1.0
The push refers to repository [docker.io/ipadfordennis/myos]
74ddd0ec08fa: Mounted from library/centos
1.0: digest: sha256:a1801b843b1bfaf77c501e7a6d3f709401a1e0c83863037fa3aab063a7fdb9dc size: 529
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~#
root@template:~# docker run -it --name myos2 ubuntu
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
405f018f9d1d: Pull complete
Digest: sha256:b6b83d3c331794420340093eb706a6f152d9c1fa51b262d9bf34594887c2c7ac
Status: Downloaded newer image for ubuntu:latest
root@8b8b367b6785:/#
root@8b8b367b6785:/#
'Infra > Docker_K8S' 카테고리의 다른 글
Dockerfile 작성법2 - CMD, ENTRYPOINT (0) | 2022.07.31 |
---|---|
DockerFile 작성법1 (0) | 2022.07.30 |
docker login (0) | 2022.07.30 |
docker login (0) | 2022.07.30 |
Docker 테스트 1 (0) | 2022.07.30 |
댓글