August 2018
Intermediate to advanced
352 pages
12h 30m
English
With the following build command, we can build a new image:
$ docker image build -t apache2 .
Sending build context to Docker daemon 52.74kB
Step 1/5 : FROM alpine:3.6
3.6: Pulling from library/alpine
88286f41530e: Pull complete
Digest: sha256:f006ecbb824d87947d0b51ab8488634bf69fe4094959d935c0c103f4820a417d
Status: Downloaded newer image for alpine:3.6
---> 76da55c8019d
Step 2/5 : LABEL maintainer "Jeeva S. Chelladhurai <sjeeva@gmail.com>"
---> Running in 83e2c061c956
---> f77381e55873
Removing intermediate container 83e2c061c956
Step 3/5 : RUN apk add --no-cache apache2 &&
mkdir -p /run/apache2 &&
echo "<html><h1>Docker Cookbook</h1></html>" >
/var/www/localhost/htdocs/index.html
---> Running in 3abde4480544
fetch ...Read now
Unlock full access