-
-
Notifications
You must be signed in to change notification settings - Fork 867
Add instructions on how to use the dev container image from GHCR #1581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Along the way make using the container outside of GitHub Codespaces its own section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! I appreciate this addition @brettcannon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
||
You can download the latest version of the container image via: | ||
|
||
.. code-block:: bash | ||
|
||
docker pull ghcr.io/python/devcontainer:latest | ||
|
||
(Substitute ``podman`` for ``docker`` if you use Podman.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker run
will pull the image automatically, so this isn't necessary.
You can download the latest version of the container image via: | |
.. code-block:: bash | |
docker pull ghcr.io/python/devcontainer:latest | |
(Substitute ``podman`` for ``docker`` if you use Podman.) |
.. code-block:: bash | ||
|
||
podman run -it --rm --volume $PWD:/workspace:Z --workdir /workspace ghcr.io/python/devcontainer:latest | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to copy the caveats here?
Note that the container has read/write access to the working directory. | |
You may want to use a separate clone of CPython, or run ``make clean`` | |
to remove caches and build output generated for your host OS. | |
Along the way make using the container outside of GitHub Codespaces its own section.
📚 Documentation preview 📚: https://cpython-devguide--1581.org.readthedocs.build/