Skip to content

Instantly share code, notes, and snippets.

@vallettea
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save vallettea/8ed3935593ad0575c228 to your computer and use it in GitHub Desktop.

Select an option

Save vallettea/8ed3935593ad0575c228 to your computer and use it in GitHub Desktop.
Docker

Install on mac:

Install brew and brew cask

brew update
brew tap phinze/homebrew-cask
brew install brew-cask

and then:

brew cask install virtualbox
brew install docker
brew install boot2docker
boot2docker init
boot2docker start

If you want to start an ubuntu :

docker run -it ubuntu bash

or

docker run --rm -i -t -p 80:80 nginx boot2docker ip # find the ip of boot2docker to access the server

Mounting

docker run -t -i -privileged -v /dev/bus/usb:/dev/bus/usb ubuntu bash

Refs: https://docs.docker.com/articles/dockerfile_best-practices/ https://docs.docker.com/articles/basics/ https://docs.docker.com/userguide/dockerimages/ https://github.com/wsargent/docker-cheat-sheet http://viget.com/extend/how-to-use-docker-on-os-x-the-missing-guide http://phusion.github.io/baseimage-docker/ http://jonathan.bergknoff.com/journal/building-good-docker-images http://www.hokstad.com/docker/patterns

Monitoring http://blog.logscape.com/2014/07/monitoring-docker-part-ii/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment