Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker 101 - Setup #dc101 #setup

Docker: Up and Running Training Setup

Note: Student should run through all of this setup BEFORE class.

You will need a current and working copy of docker and docker-compose installed on your system before class starts.

Prerequisites for this course:

  • A recent computer and OS
    • Recent Linux, OS X, or 64bit Windows 10 (Pro, Enterprise and Education editions).
    • root/admin rights
    • Sufficient resources to run one 2 CPU virtual machine (VM)
    • CPU Virtualization extensions MUST be enabled in your BIOS/EFI
      • This is likely only an issue if you have NEVER run a virtual machine on your system and are using a PC-based system.
  • Reliable and fast internet connectivity
    • We will be downloading a few 100MB of docker images, etc.
  • A text editor (or IDE)
  • Git client
  • Docker Community Edition
    • Configured for Linux Containers (NOT Windows Containers)
  • Basic comfort with the Unix command line will be helpful.
  • [optional] wget utility
  • [optional] curl utility
  • [optional] jq utility
  • [optional] SSH client

Tool Requirements:

Ensure that you have these pre-installed:

  • Package Manager (Installation Tool)
  • Docker Community Edition
  • Text Editor / IDE
  • Git
    • (All): Install via package manager, if not pre-installed.
  • [optional] wget
    • (All): Install via package manager, if not pre-installed.
  • [optional] curl
    • (All): Install via package manager, if not pre-installed.
  • [optional] jq
    • (All): Install via package manager, if not pre-installed.
  • [optional] SSH client
    • (All): Install via package manager, if not pre-installed (For Windows, try: win32-openssh)

Warming the Cache

Running the following commands, after you have installed Docker Community Edition, will download and install some of the larger files that we will need to download during class, saving everyone time and bandwidth.

  • From a Unix/OS X terminal prompt run:
cd ${HOME}
mkdir docker-class
cd docker-class
docker pull debian:latest
docker pull fedora:22
docker pull redis:3.2.5
docker pull node:6.11.3
docker pull spkane/train-os:latest
docker pull adejonge/helloworld
git clone https://github.com/spkane/hubot-docker.git
git clone https://github.com/spkane/wearebigchill.git
wget https://raw.githubusercontent.com/spkane/train-os/master/default.json # optional
wget https://raw.githubusercontent.com/spkane/train-os/master/strace.json # optional
  • From a Windows command prompt run:
cd %HOMEPATH%
mkdir docker-class
cd docker-class
docker pull debian:latest
docker pull fedora:22
docker pull redis:3.2.5
docker pull node:6.11.3
docker pull spkane/train-os:latest
docker pull adejonge/helloworld
git clone https://github.com/spkane/hubot-docker.git --config core.autocrlf=input
git clone https://github.com/spkane/wearebigchill.git --config core.autocrlf=input
wget https://raw.githubusercontent.com/spkane/train-os/master/default.json # optional
wget https://raw.githubusercontent.com/spkane/train-os/master/strace.json # optional
@miostreams

This comment has been minimized.

Copy link

commented Apr 9, 2018

I have all of these PC requirements, but the PC is Windows 7 64 bit enterprise -- is there a specific need for Windows 10?

@IgorMrcl

This comment has been minimized.

Copy link

commented May 15, 2018

Hello @miostreams.

I believe that Docker for Windows has as a requirement the OS to be 64bit Windows 10 Pro, Enterprise and Education (1607 Anniversary Update, Build 14393 or later).
There is a something called Docker Toolbox and it works on previous windows versions but idk if you will be able to follow the course because it is significantly different.

@mepolhamus

This comment has been minimized.

Copy link

commented May 17, 2018

Any particular versions of Docker, or Docker-compose required for this course?

I ask because I had to get a newer version of docker-compose (than what is supported for my OS) to try the https://github.com/dockersamples/example-voting-app.git example.

@oraclean

This comment has been minimized.

Copy link

commented Aug 6, 2018

I installed docker-CE, when I run "docker run hello-world" it has error, I have Centos7 OS installed.

[root@test]# docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp 34.206.236.31:443: connect: network is u
See 'docker run --help'.

Anyone has idea what is wrong? thanks.

@wilberh

This comment has been minimized.

Copy link

commented Oct 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.