-
Notifications
You must be signed in to change notification settings - Fork 5
docker setup
Martijn Gastkemper edited this page Nov 22, 2018
·
43 revisions
Docker Desktop contains all tools you need to run Docker and Docker Compose: Download and install it.
Make sure the happy little whale is running in your task bar.
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
For in your ~/.bash_profile
:
function dock {
docker-compose exec web "$@"
}
Add this function with funced dock
and then save with funcsave dock
.
function dock
docker-compose exec web $argv
end
Activate the docker-compose
bundle. And use the alias dce web ...