Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 1.01 KB

docker.md

File metadata and controls

61 lines (37 loc) · 1.01 KB

Docker

Installing

boot2docker

brew update
brew install boot2docker

docker

brew install docker

Running

boot2docker init
boot2docker up

Commands

Images

  • Search docker search <search term>
  • Pull docker pull [IMAGE NAME]
  • Remove docker rmi [IMAGE ID]

Container

  • Start ````docker start [container name]
  • Show running containers ````docker ps
  • Stop an active container ````docker stop [container id]
  • Attach to a running container ````docker attach CONTAINER

Concepts

Things

  • Images
  • Container

Action

  • Search

    docker search

  • Pull

    docker pull

  • Build

Lifecycle

Search Image -> Pull Image -> Build Image

Resources