-
Notifications
You must be signed in to change notification settings - Fork 0
Home
GunSik2 edited this page Oct 30, 2015
·
3 revisions
Welcome to the docker wiki!
Virtualization
- Virtualization : Virtual Machine vs. Container
- VM: Hardware level, Type-1(bear metal) & Type 2(Virtual Box, VMWare,...) Hypervisor
- Container: OS level, namespace & cgroups(resource management) isolation, docker
Docker installation
- Windows & Linux : instal docker-toolbox
Docker container commands
- docker run busybox echo Hello Docker // create a container using busybox image
- docker ps -a
- docker rm
- docker inspect
Docker images commands
- run : create a container
- docker images
- docker rmi
- docker build
- docker commit
- docker save
- docker import
- docker history
- docker tag
Docker image creation & push to remote repository
- http://phusion.github.io/baseimage-docker/
- docker run -t -i phusion/baseimage:0.9.16 /sbin/my_init -- bash -l // extending base image
- docker ps -a
- docker commit phusion-base-with-vim // create a new image
- docker images
- docker tag cgshome2/phusion-base-with-vim:1.0.0
- docker login // use docker hub credential
- docker push cgshome2/phusion-base-with-vim:1.0.0 // push image to remote repository