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:
parent
6bf4a10ed4
commit
2664139da4
1 changed files with 11 additions and 0 deletions
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
|
||||
------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue