# How to load a devcontainer with julia into github codespaces in 2025

**URL:** <https://discourse.julialang.org/t/how-to-load-a-devcontainer-with-julia-into-github-codespaces-in-2025/126094>\
**Category:** Tooling\
**Tags:** docker, codespaces, image\
**Created:** [February 20, 2025, 12:43am UTC](https://discourse.julialang.org/t/how-to-load-a-devcontainer-with-julia-into-github-codespaces-in-2025/126094 "2025-02-20T00:43:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeliux](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mikeliux/32/35170_2.png) [@mikeliux](https://discourse.julialang.org/u/mikeliux)\
**Post date:** [February 20, 2025, 12:43am UTC](https://discourse.julialang.org/t/how-to-load-a-devcontainer-with-julia-into-github-codespaces-in-2025/126094/1 "2025-02-20T00:43:14Z")

</div>

As of 2025, I would like to know how to add a container preloaded with julia to github’s codespaces.

I tried these answers to load julia 1.11.3 into github’s codespaces, but I failed:

- [Julia support for GitHub Codespaces](https://discourse.julialang.org/t/julia-support-for-github-codespaces/46436) =\> from 2020
- [GitHub - matsui528/julia\_codespace\_template: Template for easy launch of julia in codespace](https://github.com/matsui528/julia_codespace_template?tab=readme-ov-file) =\> The fiven code from 3 years ago, it workds, but it loads julia 1.8 (current version is 1.11.3).
- [GitHub - julia-vscode/julia-devcontainer: Julia dev container definition for VS Code Remote Development / Codespaces Container](https://github.com/julia-vscode/julia-devcontainer) =\> deprecated (reffers to the next 2 entries in list)
- [GitHub - JuliaLang/devcontainer-features: Julia Development Container Feature](https://github.com/JuliaLang/devcontainer-features) =\> does not run in github codespaces

Maybe the answer is there already, but I am not an expert in these topics. Please advise.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [June 5, 2025, 11:15am UTC](https://discourse.julialang.org/t/how-to-load-a-devcontainer-with-julia-into-github-codespaces-in-2025/126094/2 "2025-06-05T11:15:15Z")

</div>

Bit late to the party, but here is a full example: [deRSE25-workshop/.devcontainer/devcontainer.json at 370778a37ddd1a8fbf3818b24af97daf0ab907b9 · JuliaHPC/deRSE25-workshop · GitHub](https://github.com/JuliaHPC/deRSE25-workshop/blob/370778a37ddd1a8fbf3818b24af97daf0ab907b9/.devcontainer/devcontainer.json). The key bit is

> <https://github.com/JuliaHPC/deRSE25-workshop/blob/370778a37ddd1a8fbf3818b24af97daf0ab907b9/.devcontainer/devcontainer.json#L3>

With the `image` attribute you specify the container you want to use. It may be useful to provide an image with the prebuilt environment you want to use, which is also done in [deRSE25-workshop/Dockerfile at 370778a37ddd1a8fbf3818b24af97daf0ab907b9 · JuliaHPC/deRSE25-workshop · GitHub](https://github.com/JuliaHPC/deRSE25-workshop/blob/370778a37ddd1a8fbf3818b24af97daf0ab907b9/Dockerfile) (but this is activating the environment of a Pluto environment, which complicates the Dockerfile a bit), and the image is automatically built on GitHub actions at [deRSE25-workshop/.github/workflows/DockerPublish.yml at 370778a37ddd1a8fbf3818b24af97daf0ab907b9 · JuliaHPC/deRSE25-workshop · GitHub](https://github.com/JuliaHPC/deRSE25-workshop/blob/370778a37ddd1a8fbf3818b24af97daf0ab907b9/.github/workflows/DockerPublish.yml). Instructions for end users to run the Codespace: [deRSE25-workshop/README.md at 370778a37ddd1a8fbf3818b24af97daf0ab907b9 · JuliaHPC/deRSE25-workshop · GitHub](https://github.com/JuliaHPC/deRSE25-workshop/blob/370778a37ddd1a8fbf3818b24af97daf0ab907b9/README.md#github-codespaces) (you need to expand the “Other options for running the notebooks without installing Julia on your machine” section)
