<p>To run the <a href="https://hub.docker.com/r/inputoutput/plutus-starter-devcontainer" rel="nofollow noreferrer">Plutus Starter DevContainer</a> from VSCode you have to:</p>
<ol>
<li>Install <a href="https://docs.docker.com/get-docker/" rel="nofollow noreferrer"><code>docker</code></a> and <a href="https://code.visualstudio.com/download" rel="nofollow noreferrer"><code>VSCode</code></a></li>
<li>Install <a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers" rel="nofollow noreferrer">Dev Containers</a> and <a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack" rel="nofollow noreferrer">Remote Development</a> extensions for VSCode</li>
<li>Run <code>docker run -it --entrypoint /bin/bash inputoutput/plutus-starter-devcontainer:latest -s</code></li>
</ol>
<p>You will initiate an instance of a Plutus Starter DevContainer, like this:</p>
<p><a href="https://i.sstatic.net/6L6CJ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6L6CJ.png" alt="docker run -it --entrypoint /bin/bash inputoutput/plutus-starter-devcontainer:latest -s" /></a></p>
<ol start="4">
<li>Then, open <code>VSCode</code> and from the <strong>Remote Explorer</strong> and under <strong>Dev Containers</strong>, select <code>inputoutput/plutus-starter-devcontainer:latest</code> and then open a terminal (<strong>Terminal</strong> - <strong>New Terminal</strong>)</li>
<li>Then run <code>cd plutus-starter</code></li>
<li><code>cabal update</code></li>
<li><code>cabal build</code></li>
</ol>
<p>You have built the <code>plutus-starter</code> project from the Dev Container. You can code and build any <code>plutus</code> project inside it, including the <code>plutus-playground</code>.</p>

CC BY-SA 4.0
2023-04-01T23:49:05.287Z
2023-04-13T01:41:53.623Z
2023-04-13T01:41:53.623Z
Falcon Stakepool
<p>I am still looking to settle on a dev environment for Plutus contracts.
I am thinking about using VSCode with the devcontainer, but would like to know how well it all integrates. Is it easy to have the associated Playground and Haddock documentation alongside?</p>
<p>I am currently able to get cabal, Plutus server, Plutus Playground and Haddock docs in sync building Plutus in a nixos/nix container image. Would VSCode give me the same?</p>

<plutus><plutus-playground><docker><vscode><dev-container>
How can you run the Plutus Playground and serve the Haddock documentation from the VSCode DevContainer?
# How can you run the Plutus Playground and serve the Haddock documentation from the VSCode DevContainer?

(Asked by: username_0 on 2021-08-06)

I am still looking to settle on a dev environment for Plutus contracts.
I am thinking about using VSCode with the devcontainer, but would like to know how well it all integrates. Is it easy to have the associated Playground and Haddock documentation alongside?

I am currently able to get cabal, Plutus server, Plutus Playground and Haddock docs in sync building Plutus in a nixos/nix container image. Would VSCode give me the same?

**Tags:** plutus, plutus-playground, docker, vscode, dev-container

---

## 1 answers

### Answer by username_1 on 2023-04-01. Score: 0

To run the [Plutus Starter DevContainer](https://hub.docker.com/r/inputoutput/plutus-starter-devcontainer) from VSCode you have to:

1. Install [`docker`](https://docs.docker.com/get-docker/) and [`VSCode`](https://code.visualstudio.com/download)
2. Install [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) and [Remote Development](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) extensions for VSCode
3. Run `docker run -it --entrypoint /bin/bash inputoutput/plutus-starter-devcontainer:latest -s`

You will initiate an instance of a Plutus Starter DevContainer, like this:

[![docker run -it --entrypoint /bin/bash inputoutput/plutus-starter-devcontainer:latest -s](https://i.sstatic.net/6L6CJ.png)](https://i.sstatic.net/6L6CJ.png)

4. Then, open `VSCode` and from the **Remote Explorer** and under **Dev Containers**, select `inputoutput/plutus-starter-devcontainer:latest` and then open a terminal (**Terminal** - **New Terminal**)
5. Then run `cd plutus-starter`
6. `cabal update`
7. `cabal build`

You have built the `plutus-starter` project from the Dev Container. You can code and build any `plutus` project inside it, including the `plutus-playground`.


---

