Container
Docker
Basic actions
Log in to a Docker registry:
docker login $REGISTRY_URL
Exec into a container:
docker exec -it $CONTAINER_NAME /bin/bash
Push multiple docker images:
for t in $(docker images --format "{{.Repository}}:{{.Tag}} " | grep "$IMAGE_NAME"); do docker push "${t}"; done
List all the labels of an images:
docker inspect $DOCKER_IMAGE_NAME | jq -r '.[0].Config.Labels'
Build specific
Change the build log output:
export BUILDKIT_PROGRESS=plain
Automatically add some git lables:
export BUILDX_GIT_LABELS=full
ContainerD
Basic actions
Pull an image:
ctr image pull $IMAGE_NAME