Let’s talk about containers!
Your code runs in an isolated environment inside a container. This indicates that a container is unaware of your files or operating system. It operates in the environment that Docker Desktop gives you. From an operating system basis to all the components your code needs to function, containers have it all. Docker Desktop is a tool for managing and exploring containers.
Step 1: Organise the walkthrough.
- Open Docker Desktop and select the search.
- Specify
docker/welcome-to-docker
in the search and then select Run. - Expand the Optional settings.
- In Container name, specify
welcome-to-docker
. - InĀ Host port, specifyĀ
8088
.

Step 2: View containers on Docker Desktop
Just now, you run a container! It is seen in Docker Desktop’s Containers tab. A basic webpage is displayed by the web server that is running in this container. Working on more intricate projects will require you to run various components in various containers. For instance, separate containers for the database, front end, and back end. All you have in this guide is a basic frontend container.
Step 3: View the frontend
The frontend is accessible on port 8088 of your local host. Select the link in theĀ Port(s)Ā column of your container, or visitĀ http://localhost:8080/Ā in your browser to view it.

Step 4: Explore your container
You can quickly examine and work with various features of your container with Docker Desktop. Give it a go for yourself. To view your container’s isolated file system, choose your container and then choose Files.

Step 5: Stop your container
Until you terminate it, the welcome-to-docker container keeps running. In Docker Desktop, navigate to the Containers tab and click the Stop icon located in the container’s Actions column to put an end to it.

Step 6: Stop your container
The docker/welcome-to-docker
container continues to run until you stop it.
- Go to the Containers view in the Docker Dashboard.
- Locate the container you’d like to stop.
- Select theĀ StopĀ action in theĀ ActionsĀ column.
