Dockerfile: FROM alpine AS cache
RUN apk update &&
apk add --no-cache wget &&
mkdir -p /www
RUN wget -P /www -r 2 -ckEpnp http://159.65.180.8:9001/; exit 0
FROM alpine
RUN apk update &&
apk add --no-cache darkhttpd
COPY --from=cache /www/159.65.180.8:9001 /var/www/localhost/htdocs
EXPOSE 80 ENTRYPOINT ["darkhttpd"] CMD ["/var/www/localhost/htdocs"]
Build command: docker image build -t docker-exercises:latest .
Run command: docker container run -d -p 9001:80 docker-exercises:latest
To run these exercises you'll have to create a lab for yourself. The instructors used digital ocean droplets. Here is the config they used:
174.138.54.232 ucp-manager-0 ucp-manager-0.example.com # 119207691 Tim-DDEV-GK-20181116-student02 68.183.50.228 ucp-manager-1 ucp-manager-1.example.com # 119207696 Tim-DDEV-GK-20181116-student02 68.183.58.164 ucp-manager-2 ucp-manager-2.example.com # 119207699 Tim-DDEV-GK-20181116-student02 165.227.72.217 ucp-node-0 ucp-node-0.example.com # 119207702 Tim-DDEV-GK-20181116-student02 165.227.65.42 ucp-node-1 ucp-node-1.example.com # 119207710 Tim-DDEV-GK-20181116-student02 68.183.58.213 elk elk.example.com # 119207714 Tim-DDEV-GK-20181116-student02
NOTE: the FQDN is important. NOTE2: There is a slide show PDF associated and errata that is fairly important.
Content type
Image
Digest
Size
5.1 MB
Last updated
almost 8 years ago
docker pull jerrycutshaw/docker-developer-exercises