File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -104,3 +104,33 @@ Here is the full history of commands to install docker in hp-EliteBook running U
104104 30 sudo usermod -aG docker $USER
105105 31 docker run hello-world
106106```
107+
108+ ## Build your own Docker image
109+
110+ From:
111+ * https://docs.docker.com/engine/getstarted/step_four/
112+
113+ ```
114+ 298 mkdir mydockerbuild
115+ 299 ls
116+ 300 cd mydockerbuild/
117+ 301 ls
118+ 302 pwd
119+ 303 touch Dockerfile
120+ 304 ls
121+ 305 cat Dockerfile
122+ ```
123+
124+ ```
125+ $ cat Dockerfile
126+ FROM docker/whalesay:latest
127+ RUN apt-get -y update && apt-get install -y fortunes
128+ CMD /usr/games/fortune -a | cowsay
129+ ```
130+
131+ ```
132+ 306 docker build -t docker-whale .
133+ 307 docker images
134+ 308 docker run docker-whale
135+
136+ ```
Original file line number Diff line number Diff line change 1+ FROM docker/whalesay:latest
2+ RUN apt-get -y update && apt-get install -y fortunes
3+ CMD /usr/games/fortune -a | cowsay
File renamed without changes.
You can’t perform that action at this time.
0 commit comments