Documentation Scan with docker push
Nothing to install. Push the image to scancontainer as you would push it to any registry, and the push starts the scan.
Before you start
- An account. A free one is enough.
- An access token from your account settings. It is the password for the commands below.
The commands
Sign in once with docker login, using your account name and an access token from the platform. Then tag the image with the scancontainer address and push it. The push starts the scan and the report appears in your account.
docker login scancontainer.com
docker tag myapp:1.4 scancontainer.com/your-user/myapp:1.4
docker push scancontainer.com/your-user/myapp:1.4Replace your-user with your account name and myapp with the name of your image.
After the push
- The scan starts when the push ends.
- The report appears in your account when the analysis ends.
- The image you pushed is deleted. scancontainer is not a registry to store images.
If you have the command line tool, these two commands show and download the report of that push.
sc report last
sc download last --format pdfIf something goes wrong
- If the push is rejected, run docker login again and check that the image name starts with scancontainer.com/ followed by your account name.
- If you have reached the limit of your plan, the scan waits until the limit resets or until you add scans.
- If part of the image cannot be read, the report lists it as a gap instead of passing it as clean.