1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Example of sharing an image in the README

This commit is contained in:
Solomon Hykes 2013-03-26 13:07:06 -07:00
parent 6bf4a10ed4
commit 2664139da4

View file

@ -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
------------------------------