Skip to content
Diogo Lundberg edited this page Sep 4, 2018 · 3 revisions

Installation

MacOS

Using homebrew

brew cask install docker

Linux

Please follow the instructions according to your linux distribution:

or directly through the binaries

Windows

Download it from here: docker-ce-desktop-windows

Read before install:

  • The current version of Docker for Windows runs on 64bit Windows 10 Pro, Enterprise and Education (1607 Anniversary Update, Build 14393 or later).
  • For older versions, try docker toolbox.

Docker desktop windows configuration

  • When installing, choose for linux containers or change this later just clicking on Switch to Linux containers.

container-linux

  • Settings -> General -> Allow Expose daemon on tcp://localhost:2375 without TLS

Expose daemon

  • Settings -> Shared drivers -> Share C

Share C

Useful commands

Create image "app" using current directory's Dockerfile

docker build -t app .

Run image you just created

docker run app

Remove image created above (must remove container first)

docker image rm app

List all containers

docker container ls -a

Remove specified container

docker container rm <container id>