💾 Archived View for kelgors.me › wiki › docker.gmi captured on 2023-07-22 at 16:26:06. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
sudo usermod -aG docker <user>
docker login [-u <username>] [server] docker build -t <[registry/]name[:version]> . docker push <[registry/]name[:version]>
export DOCKER_CLI_EXPERIMENTAL=enabled docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64 docker buildx create --use --name multi-arch-builder docker buildx inspect --bootstrap # check architectures # then you can copy desired architectures to --platform argument docker buildx build --platform=linux/amd64,linux/arm64,linux/arm/v7 -t kelgors/gemweb:1.0.0 .
docker ps -as
# remove dangling images docker images prune # remove dangling containers/networks/images docker system prune
Last-Updated: 2022-08-15