Skip to content

Commit 4718f08

Browse files
committed
Add dockerfile commands
1 parent 0aab679 commit 4718f08

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,37 @@ $ docker network rm $(docker network ls | grep "bridge" | awk '/ / { print $1 }'
397397

398398
### Dockerfile
399399
Dockerfile is a text document that contains set of commands and instructions which will be executed in a sequence in the docker environment for building a new docker image.
400+
401+
#### FROM
402+
This command Sets the Base Image for subsequent instructions
403+
404+
```cmd
405+
FROM <image>
406+
FROM <image>:<tag>
407+
FROM <image>@<digest>
408+
409+
Example:
410+
FROM ubuntu:18.04
411+
```
412+
413+
414+
#### RUN
415+
416+
#### ENTRYPOINT
417+
418+
#### CMD
419+
420+
#### COPY
421+
422+
#### ADD
423+
424+
#### ENV
425+
426+
#### EXPOSE
427+
428+
#### WORKDIR
429+
430+
#### MAINTAINER
400431
### Docker Compose
401432
Docker compose(or compose) is a tool for defining and running multi-container Docker applications.
402433
### Docker Swarm

0 commit comments

Comments
 (0)