Docker
Docker Fundamentals - Getting Started
  •  

Running Your First Container

PRO

Running Your First Container

After installing Docker, use the command docker container run hello-world. There are a couple things that happen when you run this command:

  1. Docker looks for the “hello-world” image locally. If it can't find it locally it will download it from Docker
  2. Docker creates a container from the image

The “hello-world” image is provided by Docker and is used to test if installation is working as expected.

Troubleshooting

If you have trouble logging in or are getting the error message "incorrect username or password", try to log in with your username and not your email address. Go to cloud.docker.com to see your username. You can logout and log in from the terminal using docker logout and docker login