banner
小鱼

小鱼's Blog

Upload image to Docker Hub

First, create a new repository on Docker Hub.

After building the image locally,

Tag the local image.

docker tag local_image:tag docker_account/docker_repository:tag

For example,

docker tag yusnodeapi:latest brycuyuuu/yusnadoapi:v1.0

Then use the command

docker login

When you see the following output, login is successful.

Authenticating with existing credentials...
Login Succeeded

Then upload to the repository.

docker push docker_account/repository_name:tagname

For example,

docker push bryceyuuu/yusnodeapi:v1.0

Or directly click the push to hub option in Docker Desktop.


image

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.