This is a simple project to build a virtual development environment using docker.
Here we will show common commands an the prerequisites for using docker, the others branches will show only specific content.
We've build some environment samples, choose one just click on a link bellow.
The master branch is empty, just to point another branch with desired environment sample.
By now we have those options:
You will need to download and install these tools.
If you are on Mac Os X or Windows you will need to install
But there's an all in one installers for boot2docker that comes with VirtualBox.
It's simple, after instalation you will need to Change these files to match your project
- Dockerfile
- docker-compose.yml
If you are using boot2docker start it using these command bellow. Learn more
$ boot2docker init
$ boot2docker up
To Build your containers, this will look at you docker-compose.yml.
$ docker-compose build
Run your containers
$ docker-compose up
Stop your containers
$ docker-compose stop
Run a command in a new container
$ docker-compose run <container name on docker-compose.yml> <command>
List your containers from docker-compose.yml
$ docker-compose ps
List your all running containers
$ docker ps
Run a command in a existing container, needs the previous command result
$ docker exec -i -t <container id or name> <command>
This project is inspired by Padawan-Vagrant.
Thanks to Mr Enderson for help me to start this project.
I use these aliases on my machine, just put then in your bashrc.
alias dc='docker-compose'
alias dcu='dc up'
alias dcl='dc logs'