mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-09-22 05:40:50 +02:00
Update README.md
This commit is contained in:
parent
35205e992d
commit
60554fdae7
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
@ -142,7 +142,7 @@ Images are just [templates for docker containers](https://docs.docker.com/introd
|
||||||
* [`docker images`](https://docs.docker.com/reference/commandline/images) shows all images.
|
* [`docker images`](https://docs.docker.com/reference/commandline/images) shows all images.
|
||||||
* [`docker import`](https://docs.docker.com/reference/commandline/import) creates an image from a tarball.
|
* [`docker import`](https://docs.docker.com/reference/commandline/import) creates an image from a tarball.
|
||||||
* [`docker build`](https://docs.docker.com/reference/commandline/build) creates image from Dockerfile.
|
* [`docker build`](https://docs.docker.com/reference/commandline/build) creates image from Dockerfile.
|
||||||
* [`docker commit`](https://docs.docker.com/reference/commandline/commit) creates image from a container.
|
* [`docker commit`](https://docs.docker.com/reference/commandline/commit) creates image from a container, pausing it temporarily if it is running.
|
||||||
* [`docker rmi`](https://docs.docker.com/reference/commandline/rmi) removes an image.
|
* [`docker rmi`](https://docs.docker.com/reference/commandline/rmi) removes an image.
|
||||||
* [`docker load`](https://docs.docker.com/reference/commandline/load) loads an image from a tar archive as STDIN, including images and tags (as of 0.7).
|
* [`docker load`](https://docs.docker.com/reference/commandline/load) loads an image from a tar archive as STDIN, including images and tags (as of 0.7).
|
||||||
* [`docker save`](https://docs.docker.com/reference/commandline/save) saves an image to a tar archive stream to STDOUT with all parent layers, tags & versions (as of 0.7).
|
* [`docker save`](https://docs.docker.com/reference/commandline/save) saves an image to a tar archive stream to STDOUT with all parent layers, tags & versions (as of 0.7).
|
||||||
|
@ -220,6 +220,12 @@ In order to push to this repository tag image with `repositoryHostName:5000/imag
|
||||||
|
|
||||||
* [Flux7's Dockerfile Tutorial](http://flux7.com/blogs/docker/docker-tutorial-series-part-3-automation-is-the-word-using-dockerfile/)
|
* [Flux7's Dockerfile Tutorial](http://flux7.com/blogs/docker/docker-tutorial-series-part-3-automation-is-the-word-using-dockerfile/)
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
* [Examples](https://docs.docker.com/reference/builder/#dockerfile-examples)
|
||||||
|
* [Best practices for writing Dockerfiles](https://docs.docker.com/articles/dockerfile_best-practices/)
|
||||||
|
* [Michael Crosby](http://crosbymichael.com/) has some more [Dockerfiles best practices](http://crosbymichael.com/dockerfile-best-practices.html) / [take 2](http://crosbymichael.com/dockerfile-best-practices-take-2.html).
|
||||||
|
|
||||||
## Layers
|
## Layers
|
||||||
|
|
||||||
The versioned filesystem in Docker is based on layers. They're like [git commits or changesets for filesystems](https://docs.docker.com/terms/layer/).
|
The versioned filesystem in Docker is based on layers. They're like [git commits or changesets for filesystems](https://docs.docker.com/terms/layer/).
|
||||||
|
@ -327,12 +333,6 @@ If you forget what you mapped the port to on the host container, use `docker por
|
||||||
docker port CONTAINER $CONTAINERPORT
|
docker port CONTAINER $CONTAINERPORT
|
||||||
```
|
```
|
||||||
|
|
||||||
### Examples
|
|
||||||
|
|
||||||
* [Examples](https://docs.docker.com/reference/builder/#dockerfile-examples)
|
|
||||||
* [Best practices for writing Dockerfiles](https://docs.docker.com/articles/dockerfile_best-practices/)
|
|
||||||
* [Michael Crosby](http://crosbymichael.com/) has some more [Dockerfiles best practices](http://crosbymichael.com/dockerfile-best-practices.html) / [take 2](http://crosbymichael.com/dockerfile-best-practices-take-2.html).
|
|
||||||
|
|
||||||
## Best Practices
|
## Best Practices
|
||||||
|
|
||||||
This is where general Docker best practices and war stories go:
|
This is where general Docker best practices and war stories go:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue