Skip to content

Build Container Image with Podman

1. Build Images.Use command

podman build -t TAGS . - For docker, just replacepodmanwithdocker.

2. For cross-platform buildsUse command

podman build --platform=linux/arm/v7 -t TAGS . Here we takearm/v7as an example.

3. Push the Image to DockerHubUse the following command, replacingusernameandpasswordwith your actual username and password```

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

## 4. Push after Login```
podman login docker.io
podman push docker.io/library/IMAGENAME:latest

Ref[1]. Some-Operations-After-Installing-docker-and-podman

[2]. Container-On-Mikrotik