| author | jess-johnson-msft |
|---|---|
| ms.author | jejohn |
| ms.topic | include |
| ms.date | 06/28/2022 |
Step 1. Build the latest version of the image.
docker run --rm -d -p 5002:5002/tcp mycontainer:latest
Step 2. Confirm that the container is running.
Use the docker container ls command.
docker container ls
You should see your container "mycontainer: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://localhost:5002/" for Flask or "http://localhost:8000" for Django.
Step 4. Shut down the container
docker container stop <name>