From c0e6f8a5c51f3cffdc793d3fc4700c838f27c8d7 Mon Sep 17 00:00:00 2001 From: Stuart Clements Date: Fri, 1 Nov 2019 11:31:31 +0100 Subject: [PATCH] Updated demo topic --- .../install_config/installation/demo_server.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/harbor-doc-reorg/install_config/installation/demo_server.md b/docs/harbor-doc-reorg/install_config/installation/demo_server.md index 645695172..fa2801563 100644 --- a/docs/harbor-doc-reorg/install_config/installation/demo_server.md +++ b/docs/harbor-doc-reorg/install_config/installation/demo_server.md @@ -24,14 +24,24 @@ If you encounter any problems while using the demo server, open an [issue on Git 1. Explore the default project, `library` and create your own project. For information about how to create a project, see [Managing Projects](../../working_with_projects/managing_projects.md). -1. Open a Docker client and log in to Harbor. +1. Open a Docker client and log in to Harbor with the credentials that you created above. ``` docker login demo.goharbor.io ``` -1. Build an image, tag it, and push it to a project in Harbor. +1. Create a very simple `Dockerfile` with the following contents. ``` - docker push demo.goharbor.io/your-project/test-container + FROM busybox:latest + ``` +1. Build an image from this Dockerfile and tag it. + + ``` + docker build -t demo.goharbor.io/your-project/your-image . ``` -1. In the Harbor interface, go to the project and select the **Repositories** tab to view the image repository in the Harbor project. \ No newline at end of file +1. Push the image to your project in Harbor. + + ``` + docker push demo.goharbor.io/your-project/your-image + ``` +1. In the Harbor interface, go to **Projects** > *your_project* > **Repositories** to view the image repository that you pushed to your Harbor project. \ No newline at end of file