---
title: Deploy CodeScene using Docker
---

# Deploy CodeScene using Docker

### Deployment prerequisites

Before proceeding, make sure you have Docker installed on your desktop. If you don't have Docker installed, follow the installment instructions for [Mac](https://docs.docker.com/desktop/install/mac-install/), [Windows](https://docs.docker.com/desktop/install/windows-install/) or [Linux](https://docs.docker.com/desktop/install/linux-install/).

 

Video walkthrough  
See this video for a complete walkthrough of [deploying CodeScene using Docker](https://staging.codescene.com/docker-video-guide?hsLang=en).

 

 

---

### Deployment instructions

Follow the steps below to deploy CodeScene locally:

 

1. Start CodeScene  
(Need help with this step? [Watch the video](https://staging.codescene.com/video-guide-deploy-using-docker-1?hsLang=en).)

- Make sure Docker is up and running before running the command below. To start CodeScene, open Terminal and run docker run by pasting the below command:

```

docker run -d -p 3003:3003 --name codescene -v codescene:/codescene codescene/codescene
```

- If port 3003 already is used, replace it with a port of your choice.

 

 

# 2. Create an SSH key (Need help with this step? [Watch the video](https://staging.codescene.com/video-guide-deploy-using-docker-2?hsLang=en).)

```

docker exec -it -u codescene codescene ssh-keygen -t ed25519 -C "your_email@example.com"
```

`Enter a file in which to save the key (/Users/YOU/.ssh/id_ed25519_sk): [Press enter]`

- - - - When you are prompted to type a passphrase, press Enter for no passphrase:

`> Enter passphrase (empty for no passphrase): [Type a passphrase]`  
`> Enter same passphrase again: [Type passphrase again]`

```
docker exec -it -u codescene codescene ssh-keygen -y -t ed25519
```

 

 

 

# 3. Activate CodeScene (Need help with this step? [Watch the video](https://staging.codescene.com/video-guide-deploy-using-docker-3?hsLang=en).)

- - If you deployed locally, go to [localhost:3003](http://localhost:3003) and choose “Start Free Trial” option.
    - If you deployed to a remote server, use the server's hostname instead of **localhost**.
- After you click "Start Free Trial", you'll be asked to create an account.

---

# Need support?

- See [detailed deployment requirements](https://docs.enterprise.codescene.io/latest/getting-started/deployment-options.html) and [full deployment instructions](https://docs.enterprise.codescene.io/latest/getting-started/installation.html#run-codescene-application-inside-a-docker-container) for more information.
- See this video for a complete walkthrough of [deploying CodeScene using Docker](https://staging.codescene.com/video-guide-deploy-using-docker?hsLang=en).
- If you’re facing an unexpected issue or application behavior, you can use detailed [analysis diagnostics and logs](https://docs.enterprise.codescene.io/latest/getting-started/troubleshooting-diagnostics-errors-and-logs.html#logs) to gather more data or [reach out to CodeScene Support.](https://codescene.freshdesk.com/support/home)

[Full CodeScene documentation](https://docs.enterprise.codescene.io/latest/getting-started/installation.html#run-codescene-application-inside-a-docker-container) [Contact support](https://supporthub.codescene.com)