Data Engineering/Docker

[Docker] Docker Hub

snoony 2024. 6. 5. 17:08

Linux에서 Docker Hub 로그인하기

회원가입 후 로그인

[rocky@localhost docker_img2]$ docker login
Log in with your Docker ID or email address to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com/ to create one.
You can log in with your password or a Personal Access Token (PAT). Using a limited-scope PAT grants better security and is required for organizations using SSO. Learn more at https://docs.docker.com/go/access-tokens/

Username: 
Password: 
WARNING! Your password will be stored unencrypted in /home/rocky/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
[rocky@localhost docker_img2]$
[rocky@localhost docker_img2]$ pwd
/home/rocky/docker_img2
[rocky@localhost docker_img2]$ whoami
rocky
[rocky@localhost docker_img2]$ docker images
REPOSITORY   TAG       IMAGE ID       CREATED       SIZE
app          latest    15058b4c151b   2 hours ago   1.01GB
ruby         latest    ddebdf046ee9   6 days ago    990MB
helloworld   lastest   26e90fec456f   13 days ago   7.79MB
[rocky@localhost docker_img2]$ docker tag app nykim1016/sinatra-app:1
[rocky@localhost docker_img2]$ docker images
REPOSITORY              TAG       IMAGE ID       CREATED       SIZE
app                     latest    15058b4c151b   2 hours ago   1.01GB
nykim1016/sinatra-app   1         15058b4c151b   2 hours ago   1.01GB
ruby                    latest    ddebdf046ee9   6 days ago    990MB
helloworld              lastest   26e90fec456f   13 days ago   7.79MB