mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-18 21:01:52 +03:00
Merge pull request #4122 from ML-Chen/patch-5
[docker/en] Add syntax highlighting, fix typos
This commit is contained in:
commit
b842e264ac
@ -3,9 +3,10 @@ language: docker
|
|||||||
filename: docker.bat
|
filename: docker.bat
|
||||||
contributors:
|
contributors:
|
||||||
- ["Ruslan López", "http://javapro.org/"]
|
- ["Ruslan López", "http://javapro.org/"]
|
||||||
|
- ["Michael Chen", "https://github.com/ML-Chen"]
|
||||||
---
|
---
|
||||||
|
|
||||||
```
|
```bat
|
||||||
:: download, install and run hello-world image
|
:: download, install and run hello-world image
|
||||||
docker run hello-world
|
docker run hello-world
|
||||||
|
|
||||||
@ -37,12 +38,12 @@ docker run hello-world
|
|||||||
:: For more examples and ideas, visit:
|
:: For more examples and ideas, visit:
|
||||||
:: https://docs.docker.com/get-started/
|
:: https://docs.docker.com/get-started/
|
||||||
|
|
||||||
:: now lets see currently running images
|
:: now let's see currently running images
|
||||||
docker ps
|
docker ps
|
||||||
:: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
|
:: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
|
||||||
:: NAMES
|
:: NAMES
|
||||||
|
|
||||||
:: lets see the images we have ran previously
|
:: let's see the images we have ran previously
|
||||||
docker ps -a
|
docker ps -a
|
||||||
|
|
||||||
:: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
|
:: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
|
||||||
@ -54,7 +55,7 @@ docker ps -a
|
|||||||
:: let's remove our previously generated image
|
:: let's remove our previously generated image
|
||||||
docker rm happy_poincare
|
docker rm happy_poincare
|
||||||
|
|
||||||
:: lets test if it was really deleted
|
:: let's test if it was really deleted
|
||||||
docker ps -a
|
docker ps -a
|
||||||
:: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
|
:: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
|
||||||
:: NAMES
|
:: NAMES
|
||||||
@ -89,7 +90,7 @@ docker ps -a
|
|||||||
:: test_container
|
:: test_container
|
||||||
:: as you can see the name is now what we have specified
|
:: as you can see the name is now what we have specified
|
||||||
|
|
||||||
:: retireve logs from a named container
|
:: retrieve logs from a named container
|
||||||
docker logs test_container
|
docker logs test_container
|
||||||
:: Hello from Docker!
|
:: Hello from Docker!
|
||||||
:: This message shows that your installation appears to be working correctly.
|
:: This message shows that your installation appears to be working correctly.
|
||||||
@ -143,4 +144,4 @@ docker ps -a
|
|||||||
:: nifty_goldwasser
|
:: nifty_goldwasser
|
||||||
|
|
||||||
docker rm nifty_goldwasser
|
docker rm nifty_goldwasser
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user