Skip to content

Build Container Image with Podman and Push to DockerHub

1. Build Images.

使用命令

podman build -t TAGS .

  • 对于docker,只需要将podman换成docker

2. 将Image推送到DockerHub

使用下列命令,将usernamepassword替换为实际的用户名和密码

podman push --creds username:password  \
docker.io/library/IMAGENAME:latest \
docker.io://ACCOUNT/IMAGENAME:latest