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