# Docker Coder with Docker has the following advantages: - Simple installation (everything is on a single box) - Workspace images are easily configured - Workspaces share resources for burst operations > Note that the below steps are only supported on a Linux distribution. ## Requirements - A Linux machine - A running Docker daemon
Before you install If you would like your workspaces to be able to run Docker, we recommend that you install Sysbox before proceeding. As part of the Sysbox installation you will be required to remove all existing Docker containers including containers used by Coder workspaces. Installing Sysbox ahead of time will reduce disruption to your Coder instance.## Instructions 1. Run Coder with Docker. ```shell export CODER_DATA=$HOME/.config/coderv2-docker export DOCKER_GROUP=$(getent group docker | cut -d: -f3) mkdir -p $CODER_DATA docker run --rm -it \ -v $CODER_DATA:/home/coder/.config \ -v /var/run/docker.sock:/var/run/docker.sock \ --group-add $DOCKER_GROUP \ ghcr.io/coder/coder:latest ``` > This will use Coder's tunnel and built-in database. See our > [Docker documentation](../install/docker.md) for other configuration > options such as running on localhost, using docker-compose, and external > PostgreSQL. 1. In new terminal, [install Coder](../install/) in order to connect to your deployment through the CLI. ```shell curl -L https://coder.com/install.sh | sh ``` 1. Run `coder login