sourcegraph/doc/dev/getting-started/quickstart_2_start_docker.md
Milan Freml 27a380928c
doc: Clear up quickstart step order (#24098)
* doc: Clear up quickstart step order

swap step 2 (DB initialization) and step 3 (Run docker) in our quickstart
make `With docker` the first section in the DB initialization

1. We need to install docker anyway, so we might as well do it before initializing the DB
2. It is easier to init the DB with docker, because it’s just 2 commands vs a lot if we do not run docker.
3. We are not following a natural order of things, if we allow using docker in step 2 and then basically require to install it in step 3

* Fix step index numbers for swapped steps

* Fix broken links
2021-08-24 09:27:45 +02:00

1.1 KiB

Quickstart step 2: 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 >