Table of Contents

Docker

Building a docker image

  1. Create Dockerfile or clone docker repository
  2. Run:
    docker build -t YourImage /path/to/dir/with/dockerfile

Running docker container

docker run -v /srv/elgoog:/mnt -d algoo

Attach to the running container (docker >= 1.3)

docker exec -it <containerIdOrName> bash

Attach to the running container (docker < 1.3)

Copying files between host and container

Delete old docker images and keep the running ones

Docker networking