1.1 KiB
1.1 KiB
Step 5: Run your image
Nicely done grabbing your Docker image! ☺️
Let's trying running it.
⌨️ Activity: Run your image
- Find your image information by typing
docker image ls.
- Use the following command to run a container from your image:
docker run -dp 8080:80 --rm <YOUR_IMAGE_NAME:TAG> - Replace
YOUR_IMAGE_NAMEwith your image name under theREPOSITORYcolumn. - Replace
TAGwith the image tag under theTAGcolumn. - Press Enter.
- If everything went well, you will see hash value as output on your screen.
- Optionally, you can open localhost:8080 to see the page you just created.
- We can't automatically verify this step for you, so please continue on to the next step below!