Last active
January 16, 2024 21:45
-
-
Save lokeshrangineni/d1a6c85850cf623aa93b62d112a44576 to your computer and use it in GitHub Desktop.
Docker Colima without docker desktop cheat sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Setting up docker and colima. | |
brew install colima | |
brew install docker docker-compose | |
mkdir -p ~/.docker/cli-plugins | |
# symlink the docker-compose command into that new folde | |
ln -sfn $(brew --prefix)/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose | |
# Need this to build some containers. | |
brew install docker-Buildx | |
#symlink it to the cli-plugins | |
ln -sfn $(brew --prefix)/opt/docker-buildx/bin/docker-buildx ~/.docker/cli-plugins/docker-buildx | |
export DOCKER_HOST="unix://$HOME/.colima/docker.sock" | |
colima start | |
colima start --cpu 4 --memory 4 --disk 20 | |
docker run hello-world | |
docker ps -a | |
docker context list | |
docker context use <default context name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment