Merge pull request #12311 from Franz333/patch-1

Update 04_sharing_app.md
This commit is contained in:
Usha Mandya 2021-02-17 15:21:42 +00:00 committed by GitHub
commit 41f746fb99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -65,15 +65,17 @@ an example command that you will need to run to push to this repo.
Now that our image has been built and pushed into a registry, let's try running our app on a brand
new instance that has never seen this container image! To do this, we will use Play with Docker.
1. Open your browser to [Play with Docker](https://www.docker.com/play-with-docker){:target="_blank" rel="noopener" class="_"}.
1. Open your browser to [Play with Docker](https://labs.play-with-docker.com/){:target="_blank" rel="noopener" class="_"}.
2. Log in with your Docker Hub account.
2. Click **Login** and then select **docker** from the drop-down list.
3. Once you're logged in, click on the "+ ADD NEW INSTANCE" link in the left side bar. (If you don't see it, make your browser a little wider.) After a few seconds, a terminal window will be opened in your browser.
3. Connect with your Docker Hub account.
4. Once you're logged in, click on the **ADD NEW INSTANCE** option on the left side bar. If you don't see it, make your browser a little wider. After a few seconds, a terminal window opens in your browser.
![Play with Docker add new instance](images/pwd-add-new-instance.png){: style=width:75% }
4. In the terminal, start your freshly pushed app.
5. In the terminal, start your freshly pushed app.
```bash
docker run -dp 3000:3000 YOUR-USER-NAME/getting-started
@ -94,4 +96,4 @@ can use the latest version of the image.
Now that we have that figured out, let's circle back around to what we noticed at the end of the last
section. As a reminder, we noticed that when we restarted the app, we lost all of our todo list items.
That's obviously not a great user experience, so let's learn how we can persist the data across
restarts!
restarts!