We use cookies to make your experience better.
Learn how to run Coder with Docker.
Coder for Docker allows you to deploy Coder to any machine on which Docker runs quickly.
You must be using a machine that is running Linux/macOS and has Docker Desktop installed.
Launch Docker Desktop.
If you've previously installed Coder, run sudo rm -rf ~/.coder
in the terminal.
In the terminal, run the following to download the resources you need, include the images, and set up your Coder deployment:
docker run --rm -it -p 7080:7080 -v /var/run/docker.sock:/var/run/docker.sock -v ~/.coder:/var/run/coder codercom/coder:1.25.0
When this process is complete, Coder will print the URL you can use to access your deployment, as well as the admin credentials you'll need to log in:
> Welcome to Coder! 👋
> Head to http://localhost:7080 to get started!
> 🙋 Username: admin
> 🔑 Password: 5h...7n
Make a note of these values, because you will need these in the subsequent step.
Launch a web browser and navigate to the URL provided by Coder (e.g.,
http://localhost:7080
). Log in using the credentials Coder provided.
At this point, you can create a workspace using one of the Packaged images by clicking on New workspace in the center of the UI.
At this point, you're ready to use your workspace.
When running, Docker Desktop displays both your Coder deployment and your workspace.
You can also view runtime information (i.e., API calls) in the console where you started your deployment:
To use a dev URL, set an environment variable when issuing the docker run
command to start your deployment (be sure to replace the placeholder URL):
DEVURL_HOST="*.mycompany.com"
For example:
docker run --rm -it -p 7080:7080 -v /var/run/docker.sock:/var/run/docker.sock -v ~/.coder:/var/run/coder codercom/coder:1.25.0 -e DEVURL_HOST="*.mycompany.com"
Coder for Docker is limited by the resources of the machine on which it runs. We recommend using Kubernetes or AWS EC2 providers if you would like automatic multi-machine scaling.
For organizations, we recommend one Docker host per team of 5-10 developers.
Currently, Coder for Docker does not support:
See an opportunity to improve our docs? Make an edit.