зеркало из https://github.com/microsoft/docker.git
Example of sharing an image in the README
This commit is contained in:
Родитель
6bf4a10ed4
Коммит
2664139da4
11
README.md
11
README.md
|
@ -124,6 +124,17 @@ docker ps
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Share your own image!
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker pull base
|
||||||
|
CONTAINER=$(docker run -d base apt-get install -y curl)
|
||||||
|
docker commit -m "Installed curl" $CONTAINER $USER/betterbase
|
||||||
|
docker push $USER/betterbase
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Expose a service on a TCP port
|
Expose a service on a TCP port
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче