Skip to content

Commit 10b649d

Browse files
author
raazesh-sainudiin
committed
organizing docker READMEs
1 parent 3dbfcd0 commit 10b649d

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

basics/docker/docker.md renamed to basics/docker/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
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.

0 commit comments

Comments
 (0)