Gettings Started

Get started by installing Docker in Windows and running a basic container

Install Docker on Windows

  1. Go to the Docker website and download the Docker Desktop installer for Windows.
  2. Double-click the downloaded file to start the installation process.
  3. Follow the prompts to accept the license agreement and choose the components to install.
  4. During the installation process, Docker will ask you if you want to enable Hyper-V and the Windows Subsystem for Linux (WSL). These components are required for Docker to work properly on Windows, so make sure to enable them if you haven’t already done so.
  5. Once the installation is complete, Docker Desktop should launch automatically.
  6. To test that Docker is working properly, open a command prompt or PowerShell window and run the following command:
docker run hello-world

Run the getting started docker image

The docker/getting-started container is a pre-built Docker image that contains a simple web application and a tutorial on how to use Docker. The image is designed to help users get started with Docker by providing a hands-on learning experience.

The web application included in the container is a simple Python Flask application that displays a web page with the message “Hello from Docker!”. The tutorial walks you through the process of building, running, and deploying this application using Docker. It covers a range of topics, including:

  • Creating a Dockerfile to define the application’s environment and dependencies
  • Building a Docker image from the Dockerfile
  • Running a Docker container from the image
  • Mapping ports and volumes between the container and the host machine
  • Using Docker Compose to define and run multi-container applications
  • Deploying the application to a remote server using Docker Swarm or Kubernetes

The docker/getting-started container is available on Docker Hub, which is a repository of pre-built Docker images that users can download and run on their local machines. By using the docker/getting-started container, users can quickly get up and running with Docker and learn how to use it to deploy their own applications.

References

Getting Started

Install Docker on Windows

Last modified July 21, 2024: update (e2ae86c)