Skip to content

Commit db9a94f

Browse files
committed
Fix #11 - Place Windows instructions as first option
1 parent 0636e6f commit db9a94f

2 files changed

Lines changed: 33 additions & 32 deletions

File tree

chapters/docker-setup.adoc

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ This section describes what, how, and where to install the software needed for t
99

1010
### Environment
1111

12-
#### DNS Server setup Linux/Mac OS
13-
14-
. Edit `/etc/resolv.conf` (Mac OS or Linux) and leave it as:
15-
16-
[source, text]
17-
----
18-
nameserver <INSTRUCTOR IP ADDRESS>
19-
----
20-
2112
#### DNS Server setup Windows
2213

2314
Go to the adapter settings of your pc's and open the Wireless Network Connection Properties Dialogue. Edit the IPv4 Properties and add the instructor IP (!) as a primary DNS server.
@@ -28,6 +19,16 @@ image::images/dns-setup-3.png["Attendee DNS Setup"]
2819

2920
Switch to the cmd and ping classroom.example.com to verify it works.
3021

22+
#### DNS Server setup Linux/Mac OS
23+
24+
. Edit `/etc/resolv.conf` (Mac OS or Linux) and leave it as:
25+
26+
[source, text]
27+
----
28+
nameserver <INSTRUCTOR IP ADDRESS>
29+
----
30+
31+
3132
### Software
3233

3334
. Java: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html[Oracle JDK 8u45]
@@ -71,16 +72,16 @@ Docker Machine makes it really easy to create Docker hosts on your computer, on
7172

7273
[source, text]
7374
----
74-
# Mac
75-
sudo curl -L http://classroom.example.com:8082/downloads/docker/docker-machine_darwin-amd64 -o /usr/local/bin/docker-machine
76-
sudo chmod +x /usr/local/bin/docker-machine
75+
#Windows
76+
curl http://classroom.example.com:8082/downloads/docker/docker-machine.exe
7777
7878
# Linux (Manual install)
7979
sudo curl -L http://classroom.example.com:8082/downloads/docker/docker-machine_linux-amd64 -o /usr/local/bin/docker-machine
8080
sudo chmod +x /usr/local/bin/docker-machine
8181
82-
#Windows
83-
curl http://classroom.example.com:8082/downloads/docker/docker-machine.exe
82+
# Mac
83+
sudo curl -L http://classroom.example.com:8082/downloads/docker/docker-machine_darwin-amd64 -o /usr/local/bin/docker-machine
84+
sudo chmod +x /usr/local/bin/docker-machine
8485
----
8586

8687
### Create Lab Docker Host
@@ -132,16 +133,16 @@ Docker Client is used to communicate with Docker Host.
132133

133134
[source, text]
134135
----
135-
# Mac
136-
sudo curl -L http://classroom.example.com:8082/downloads/docker/docker-latest-mac -o /usr/local/bin/docker
137-
sudo chmod +x /usr/local/bin/docker
136+
# Windows
137+
curl -L http://classroom.example.com:8082/downloads/docker/docker-1.8.2.exe -o docker.exe
138138
139139
# Linux
140140
sudo curl -L http://classroom.example.com:8082/downloads/docker/docker-latest-linux -o /usr/local/bin/docker
141141
sudo chmod +x /usr/local/bin/docker
142142
143-
# Windows
144-
curl -L http://classroom.example.com:8082/downloads/docker/docker-1.8.2.exe -o docker.exe
143+
# Mac
144+
sudo curl -L http://classroom.example.com:8082/downloads/docker/docker-latest-mac -o /usr/local/bin/docker
145+
sudo chmod +x /usr/local/bin/docker
145146
----
146147

147148
Check if the client is working by executing:

instructor/readme.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ Docker Client allows to interact with Docker Host. Download and install by just
4646

4747
[source, text]
4848
----
49+
#Windows
50+
Download:
51+
https://get.docker.com/builds/Windows/x86_64/docker-latest.exe
52+
https://get.docker.com/builds/Windows/i386/docker-latest.exe
53+
And save to c:\Users\<username>\docker\docker.exe
54+
4955
#Linux (Fedora only)
5056
sudo yum install docker-io
5157
5258
# MacOS / Linux (other distros)
5359
sudo curl -L https://get.docker.com/builds/`uname -s`/x86_64/docker-latest -o /usr/local/bin/docker
5460
sudo chmod +x /usr/local/bin/docker
55-
56-
#Windows
57-
Download:
58-
https://get.docker.com/builds/Windows/x86_64/docker-latest.exe
59-
https://get.docker.com/builds/Windows/i386/docker-latest.exe
60-
And save to c:\Users\<username>\docker\docker.exe
6161
----
6262

6363
## Install Docker Compose
@@ -84,18 +84,18 @@ Install the Docker machine client for your environment: https://github.com/docke
8484

8585
[source, text]
8686
----
87-
# MacOS
88-
sudo curl -L https://github.com/docker/machine/releases/download/v0.4.1/docker-machine_darwin-amd64 -o /usr/local/bin/docker-machine
89-
sudo chmod +x /usr/local/bin/docker-machine
87+
# Windows
88+
Download:
89+
https://github.com/docker/machine/releases/download/v0.4.1/docker-machine_windows-amd64.exe
90+
And save to c:\Users\<username>\docker\docker-machine.exe
9091
9192
# Linux
9293
sudo curl -L https://github.com/docker/machine/releases/download/v0.4.1/docker-machine_linux-amd64 -o /usr/local/bin/docker-machine
9394
sudo chmod +x /usr/local/bin/docker-machine
9495
95-
# Windows
96-
Download:
97-
https://github.com/docker/machine/releases/download/v0.4.1/docker-machine_windows-amd64.exe
98-
And save to c:\Users\<username>\docker\docker-machine.exe
96+
# MacOS
97+
sudo curl -L https://github.com/docker/machine/releases/download/v0.4.1/docker-machine_darwin-amd64 -o /usr/local/bin/docker-machine
98+
sudo chmod +x /usr/local/bin/docker-machine
9999
----
100100

101101
For Windows, make sure to add `c:\Users\<username>\docker` to your `%PATH%` variable. This was already done for Linux / MacOs when you downloaded `docker-machine` script to `/usr/local/bin/docker-machine`.

0 commit comments

Comments
 (0)