mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-16 15:10:12 +01:00
Merge pull request #16 from PetrGlad/master
Add "Run local registry" section.
This commit is contained in:
commit
d59deab1d0
1 changed files with 7 additions and 0 deletions
|
|
@ -179,6 +179,13 @@ Docker.io hosts its own [index](https://index.docker.io/) to a central registry
|
|||
* [`docker pull`](http://docs.docker.io/reference/commandline/cli/#pull) pulls an image from registry to local machine.
|
||||
* [`docker push`](http://docs.docker.io/reference/commandline/cli/#push) pushes an image to the registry from local machine.
|
||||
|
||||
### Run local registry
|
||||
|
||||
[Registry implementation](http://github.com/docker/docker-registry) has an official image for basic setup that can be launched with
|
||||
[`docker run -p 5000:5000 registry`](https://github.com/docker/docker-registry#quick-start)
|
||||
Note that this installation does not have any authorization controls. You may use option `-P -p 127.0.0.1:5000:5000` to limit connections to localhost only.
|
||||
In order to push to this repository tag image with `repositoryHostName:5000/imageName` then push this tag.
|
||||
|
||||
## Dockerfile
|
||||
|
||||
[The configuration file](https://docs.docker.com/reference/builder/). Sets up a Docker container when you run `docker build` on it. Vastly preferable to `docker commit`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue