# Using julia in a Development Container

**URL:** <https://discourse.julialang.org/t/using-julia-in-a-development-container/126143>\
**Category:** VS Code\
**Created:** [February 21, 2025, 9:56am UTC](https://discourse.julialang.org/t/using-julia-in-a-development-container/126143 "2025-02-21T09:56:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alessio](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@alessio](https://discourse.julialang.org/u/alessio)\
**Post date:** [February 21, 2025, 9:56am UTC](https://discourse.julialang.org/t/using-julia-in-a-development-container/126143/1 "2025-02-21T09:56:03Z")

</div>

I’m on Windows 11 with docker running in WSL2.  
On Windows I’m using Visual Studio Code with Dev Container extension.  
I have created a folder `julia` with a `.devcontainer` subfolder containining a `devcontainer.json` like the following:

```julia
{
    "name": "Julia",
    "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
    "features": {
        "ghcr.io/julialang/devcontainer-features/julia:1": {
            "channel": "release"
        },
        "ghcr.io/devcontainers/features/common-utils:2": {
            "installZsh": "true",
            "configureZshAsDefaultShell": true,
            "username": "vscode",
            "upgradePackages": "true"
        }
    },
    
    "customizations": {
        "vscode": {
            "extensions": [
                "julialang.language-julia"
            ]
        }
    },
    
    "postCreateCommand": "julia-activate"    
}

```

Once I open the `julia` folder in Visual Studio Code, after it opens the container, I get the following error:

```julia
Running the postCreateCommand from Feature 'ghcr.io/julialang/devcontainer-features/julia:1'...

[7271 ms] Start: Run in container: /bin/sh -c /usr/local/julia-devcontainer-features/postcreate.jl

/usr/bin/env: 'julia': No such file or directory
exit status 127

[7332 ms] julia-activate of postCreateCommand from Feature 'ghcr.io/julialang/devcontainer-features/julia:1' failed with exit code 127. Skipping any further user-provided commands.
Done. Press any key to close the terminal.

```

---

<div class="post-metadata">

**Author:** ![benz0li](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/benz0li/32/37040_2.png) [@benz0li](https://discourse.julialang.org/u/benz0li)\
**Post date:** [February 21, 2025, 10:30am UTC](https://discourse.julialang.org/t/using-julia-in-a-development-container/126143/2 "2025-02-21T10:30:05Z")

</div>

@alessio You may be interested in [b-data](https://github.com/b-data)’s/my [(CUDA-based) Data Science dev containers](https://github.com/b-data/data-science-devcontainers).

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/b-data/data-science-devcontainers?devcontainer_path=.devcontainer%2Fjulia-pubtools%2Fdevcontainer.json)

---

<div class="post-metadata">

**Author:** ![alessio](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@alessio](https://discourse.julialang.org/u/alessio)\
**Post date:** [February 21, 2025, 2:48pm UTC](https://discourse.julialang.org/t/using-julia-in-a-development-container/126143/3 "2025-02-21T14:48:58Z")

</div>

I’m running into [this problem](https://github.com/microsoft/vscode-remote-release/issues/7958): I have the same issue when building `b-data`’s project
