Skip to content

Instantly share code, notes, and snippets.

@quangthe
Last active April 7, 2022 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quangthe/4dc0a4c5070ad08db7e69bfa00d455e2 to your computer and use it in GitHub Desktop.
Save quangthe/4dc0a4c5070ad08db7e69bfa00d455e2 to your computer and use it in GitHub Desktop.
Lima: Docker Desktop replacement

Install lima

brew install lima

2022-02-07: nerdctl is not supported for MacOS. Cannot install via brew install nerdctl

With Docker

Set alias in .bashrc or .zshrc

alias docker="lima nerdctl"

Run nginx container: docker run -it --name nginx -v $(pwd):/my-home -p 8080:80 nginx:alpine

Verify container up and running: curl localhost:8080

With Docker Compose

git clone https://github.com/docker/awesome-compose.git

cd awesome-compose/nginx-flask-mongo

lima nerdctl compose up

Verify containers up and running: curl localhost

Ref

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment