Test Your Installation

 

Docker -Test your installation

 

Test your installation

  1. Open a terminal window (Command Prompt or PowerShell, but not PowerShell ISE).

  2. Run docker --version to ensure that you have a supported version of Docker:

    > docker --version
    
    Docker version 20.03.1
    
  3. Pull the hello-world image from Docker Hub and run a container:

    > docker run hello-world
    
    docker : Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    1b930d010525: Pull complete
    Digest: sha256:c3b4ada4687bbaa170745b3e4dd8ac3f194ca95b2d0518b417fb47e5879d9b5f
    Status: Downloaded newer image for hello-world:latest
    
    Hello from Docker!
    This message shows that your installation appears to be working correctly.
    ...
    
    
  4. List the hello-world image that was downloaded from Docker Hub:

    > docker image ls
    
  5. List the hello-world container (that exited after displaying “Hello from Docker!”):

    > docker container ls --all
    
  6. Explore the Docker help pages by running some help commands:

    > docker --help
    > docker container --help
    > docker container ls --help
    > docker run --help

Comments