Skip to content

Commit

Permalink
Code of conduct (MicrosoftDocs#220)
Browse files Browse the repository at this point in the history
* Docker push (MicrosoftDocs#219)

* added docker push

* copy update

* added code of conduct
  • Loading branch information
neilpeterson authored Jun 21, 2016
1 parent ef18b63 commit e617200
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ Walkthroughs and samples.

### *-tools
Scripts to automate Hyper-V/Windows Container things.

### Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
44 changes: 42 additions & 2 deletions virtualization/windowscontainers/management/manage_images.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ To see a list of images available from Docker Hub use the `docker search` comman

Most of these images have a Windows Server Core and a Nano Server version. To get a specific version just add the tag ":windowsservercore" or ":nanoserver". The "latest" tag will return the Windows Server Core version by default, unless there is only a Nano Server version available.

> The images that start with "nano-" have a dependency on the Nano Server Base OS Image.

```none
docker search *
Expand All @@ -219,7 +218,9 @@ microsoft/sample-ruby Ruby installed in a Windows Server Core ba... 1
microsoft/sample-sqlite SQLite installed in a Windows Server Core ... 1 [OK]
```

To download an image from Docker Hub, use `docker pull`.
### Docker Pull

To download an image from Docker Hub, use `docker pull`. For more information, see [Docker Pull on Docker.com](https://docs.docker.com/engine/reference/commandline/pull/).

```none
docker pull microsoft/aspnet
Expand All @@ -242,3 +243,42 @@ windowsservercore 10.0.14300.1000 6801d964fda5 2 weeks ago
windowsservercore latest 6801d964fda5 2 weeks ago 0 B
```

### Docker Push

Container images can also be uploaded to Docker Hub or a Docker Trusted Registry. Once uploaded these images can be downloaded and re-used across different Windows container environments.

To upload a container image to Docker Hub, first log into the registry. For more information, see [Docker Login on Docker.com]( https://docs.docker.com/engine/reference/commandline/login/) .

```none
docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: username
Password:
Login Succeeded
```

Once logged into Docker hub or your Docker Trusted registry, use `docker push` to upload a container image. The container image can be referenced by name or ID. For more information, see [Docker Push on Docker.com]( https://docs.docker.com/engine/reference/commandline/push/).

```none
docker push username/containername
The push refers to a repository [docker.io/username/containername]
b567cea5d325: Pushed
00f57025c723: Pushed
2e05e94480e9: Pushed
63f3aa135163: Pushed
469f4bf35316: Pushed
2946c9dcfc7d: Pushed
7bfd967a5e43: Pushed
f64ea92aaebc: Pushed
4341be770beb: Pushed
fed398573696: Pushed
latest: digest: sha256:ae3a2971628c04d5df32c3bbbfc87c477bb814d5e73e2787900da13228676c4f size: 2410
```

At this point the container image is now available and can be accessed with `docker pull`.



0 comments on commit e617200

Please sign in to comment.