Skip to content

Instantly share code, notes, and snippets.

@MtkN1
Created January 13, 2023 07:13
Show Gist options
  • Select an option

  • Save MtkN1/e8905537ac6839ccf83968401b86bbc8 to your computer and use it in GitHub Desktop.

Select an option

Save MtkN1/e8905537ac6839ccf83968401b86bbc8 to your computer and use it in GitHub Desktop.
Docker Run Aliases
#!/usr/bin/env bash
set -eux
docker run --rm -it \
-u vscode \
-w /home/vscode \
mcr.microsoft.com/devcontainers/python:0-${1:-3.11-bullseye} \
bash
#!/usr/bin/env bash
set -eux
docker run --rm -it \
-u codespace \
-w /home/codespace \
--entrypoint /bin/sh \
mcr.microsoft.com/devcontainers/universal:${1:-2} \
-c bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment