devops / docker : Fix syntax and style (#22202)

This commit is contained in:
Robin
2018-11-18 11:29:50 +01:00
committed by Niraj Nandish
parent 9d8e538ac0
commit 51c43e2aca

View File

@ -91,9 +91,14 @@ The Docker daemon is what actually executes commands sent to the Docker Client
### Dockerfile
A Dockerfile is where you write the instructions to build a Docker image. These instructions can be:
**RUN apt-get y install some-package**: to install a software package
**EXPOSE 8000**: to expose a port
**ENV ANT_HOME /usr/local/apache-ant** to pass an environment variable and so forth. Once youve got your Dockerfile set up, you can use the docker build command to build an image from it. Heres an example of a Dockerfile:
* **RUN apt-get -y install some-package**: to install a software package
* **EXPOSE 8000**: to expose a port
* **ENV ANT_HOME /usr/local/apache-ant** to pass an environment variable and so forth.
Once youve got your Dockerfile set up, you can use the docker build command to build an image from it.
Heres an example of a Dockerfile:
```
# Start with ubuntu 14.04