sourcegraph/doc/dev/getting-started/quickstart_3_start_docker.md
Felix Kling 8efaa1ec5d
Update development setup information and simplify some setup steps (#21403)
This commit does a couple of changes to the development setup, to update
information and to simplify the setup process:

- Update documentation with latest requirements
- Fix formatting of the requirements list
- Introduce `dev/compose.yml` to simplify redis and postgresql docker
  setups via docker-compose
- Add default values for PG* environment variables to the `dev/start.sh`
script.
- Restructure docker instructions

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
2021-05-28 11:27:43 +02:00

1.0 KiB

Quickstart step 3: Start Docker

macOS

Option A: Docker for Mac

This is the easy way - just launch Docker.app and wait for it to finish loading.

Option B: docker-machine

The Docker daemon should be running in the background, which you can test by running docker ps. If you're on OS X and using docker-machine instead of Docker for Mac, you may have to run:

docker-machine start default
eval $(docker-machine env)

Ubuntu/Linux

The docker daemon might already be running, but if necessary you can use the following commands to start it:

# as a system service
sudo systemctl enable --now docker

# manually
dockerd

If you have issues running Docker, try adding your user to the docker group, and/or updating the socket file permissions, or try running these commands under sudo.

< Previous | Next >