| author | jess-johnson-msft |
|---|---|
| ms.author | jejohn |
| ms.topic | include |
| ms.date | 07/07/2022 |
Step 1. Run the latest version of the image.
[!INCLUDE Run latest image with local MongoDB]
[!INCLUDE Run latest image with Azure MongoDB]
Passing in sensitive information as shown here is for demonstration purposes. The connection string information can be viewed by inspecting the container with the command docker container inspect. Another way to handle secrets that avoids this is to use the BuildKit functionality of Docker.
Step 2. Confirm that the container is running.
Use the docker container ls command.
docker container ls
You should see your container "<image-name>:latest" in the list. Note the NAMES column of the output. You can use this name to stop the container.
Step 3. Test the web app.
Go to "http://172.0.0.1:5002/" for Flask or "http://127.0.0.1:8000" for Django.
Step 4. Shut down the container
docker container stop <container-name>