Skip to content

Instantly share code, notes, and snippets.

@tk42
Created October 16, 2023 23:00
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 tk42/9a2cb53ec1fac6d76c2e2e17bf1a7a13 to your computer and use it in GitHub Desktop.
Save tk42/9a2cb53ec1fac6d76c2e2e17bf1a7a13 to your computer and use it in GitHub Desktop.
Added docker-compose alias in a Container-Optimized instance on VM
alias docker-compose='docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd):$(pwd)" \
-w "$(pwd)" \
docker compose'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment