Skip to content

Instantly share code, notes, and snippets.

@dev-pmartins
Last active November 30, 2015 19:03
Show Gist options
  • Save dev-pmartins/2a802b65c8b0fb6aff54 to your computer and use it in GitHub Desktop.
Save dev-pmartins/2a802b65c8b0fb6aff54 to your computer and use it in GitHub Desktop.
docker-machine create -d virtualbox [VM_NAME]
docker-machine env [VM_NAME]
eval "$(docker-machine env [VM_NAME])"
#Check if docker variables running in OS
eval
#Access docker folder (The directory have a file named as docker-compose.yml)
#Run the container
docker-compose up -d
#Verify if container is running
docker-compose ps
#Add on /etc/hosts file the VM ADDRESS with BOB and ALICE URI
#Aka: Don't forgot the run .sql file to import tables and produtcs (DB: bob_kanui)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment