Just some docker stuff
installation on mac:
brew install colima
ARCH=arm64
VERSION=$(curl https://api.github.com/repos/docker/buildx/releases/latest -s | jq .name -r)
curl -LO https://github.com/docker/buildx/releases/download/${VERSION}/buildx-${VERSION}.darwin-${ARCH}
mkdir -p ~/.docker/cli-plugins
mv buildx-${VERSION}.darwin-${ARCH} ~/.docker/cli-plugins/docker-buildx
chmod +x ~/.docker/cli-plugins/docker-buildx
docker buildx version # verify installation
show processes:
docker ps -a
show images:
docker images
cleanup all cache files:
docker system prune -a -f
run shell inside an image:
docker run --rm -v `pwd`:/tmp:/mnt/tmp -it <image> /bin/bash
run shell inside an already running container:
docker exec -it <container name> /bin/bash