Last active
August 29, 2015 14:08
-
-
Save curtkim/9db167aed06ad36b249f to your computer and use it in GitHub Desktop.
docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -t -i ubuntu:14.04 /bin/bash | |
| docker inspect -f '{{.State.Pid}}' a8658e32e8fd | |
| docker pull training/sinatra | |
| docker run -t -i training/sinatra /bin/bash | |
| gem install json | |
| docker commit -m="Added json gem" -a="Kate Smith" 0b2616b0e5a8 ouruser/sinatra:v2 | |
| docker history iamteri/sinatra:v2 | |
| # install specific version docker | |
| apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
| apt-get update | |
| apt-get install lxc-docker-1.4.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment