Push an image to Docker Scout
In this step, you will learn how to push a Docker image to Docker Scout. Docker Scout is a service that helps you understand and improve the security posture of your container images. Before pushing an image, you need to have a Docker image built or pulled locally.
First, let's pull a sample image that we will use for this step. We will use the hello-world
image from Docker Hub.
docker pull hello-world
You should see output indicating that the image is being pulled and downloaded.
Using default tag: latest
latest: Pulling from library/hello-world
...
Status: Downloaded newer image for hello-world:latest
docker.io/library/hello-world:latest
Now that we have the image, we can push it to Docker Scout. To do this, we use the docker scout push
command followed by the image name and tag.
docker scout push hello-world:latest
You should see output similar to this, indicating that the image is being pushed and analyzed by Docker Scout.
Analyzing image hello-world:latest...
...
Image hello-world:latest pushed to Docker Scout.
This command pushes the hello-world:latest
image to your default Docker Scout organization. Docker Scout will then analyze the image for vulnerabilities and other security issues.