Skip to content

Presentation

Andrzej Sydor edited this page Feb 25, 2018 · 3 revisions

Docker - introduction

Docker volumes

docker volume ls

Replace volume ID with your own

docker container run -d --name <container> -v <volume_id>:/data nginx-test

View the volume content

docker container exec <container> -lhat /data

Create a volume

docker volume create <volume_name>
docker container run -d --name <container_name> -v <volume_name>:/data --network <network_name> <container> 
docker volume inspect <volume_name>
docker volume prune 

Docker Machine

Biggest strength

  • provide interfaces to several public cloud providers:
  • Amazon Web Services
  • Microsoft Azure
  • DigitalOcean
  • Exoscale
  • Coogle Compute Engine
  • Rackspace
  • IBM SoftLayer
  • Self-hosted VM/Cloud platforms
  • Microsoft Hyper-V
  • OpenStack
  • VMmare vSphere
  • Locally hosted hypervisiors
  • Oracle VirtualBox
  • VMmare Fusion
  • VMmare Workstation

Deploying local Docker hosts with Docker Machine

docker-machine create --driver virtualbox docker-local
docker-machine env docker-local
docker-machine ls
docker-machine ssh docker-local
docker-machine ip docker-local
Clone this wiki locally