Skip to content

docker setup

Martijn Gastkemper edited this page Nov 22, 2018 · 43 revisions

Grab Docker Desktop

Docker Desktop contains all tools you need to run Docker and Docker Compose: Download and install it.

Start the Docker client 🐳

Make sure the happy little whale is running in your task bar.

Optional: the dock shortcut to run Docker commands

Install the shortcut below in your shell to shorten the syntax to run commands on your running web container. Now, instead of:

$ docker-compose exec web [command]

You can run:

$ dock [command]

For instance:

$ dock ls
$ dock bash
$ dock g spawn
$ dock g snippet create

Bash

For in your ~/.bash_profile:

function dock {
    docker-compose exec web "$@"
}

Fish shell

Add this function with funced dock and then save with funcsave dock.

function dock
    docker-compose exec web $argv
end

ZSH

Activate the docker-compose bundle. And use the alias dce web ...

Clone this wiki locally