diff --git a/docker-hub/index.md b/docker-hub/index.md index 1d672de31d..12668bc7a8 100644 --- a/docker-hub/index.md +++ b/docker-hub/index.md @@ -136,12 +136,11 @@ Docker Hub. 1. Start by creating a [Dockerfile](../engine/reference/builder/) to specify your application as shown below: - ```shell - cat > Dockerfile </my-private-repo .` to build your Docker image. diff --git a/docker-hub/vulnerability-scanning.md b/docker-hub/vulnerability-scanning.md index 77f906514e..16ca0f6f84 100644 --- a/docker-hub/vulnerability-scanning.md +++ b/docker-hub/vulnerability-scanning.md @@ -42,14 +42,14 @@ To scan an image for vulnerabilities, push the image to Docker Hub: 2. Use the command line to log into your Docker account. See [docker login](../engine/reference/commandline/login.md) for more information. 3. Tag the image that you’d like to scan. For example, to tag a Redis image, run: - ```shell - docker tag redis /:latest + ```console + $ docker tag redis /:latest ``` 4. Push the image to Docker Hub to trigger vulnerability scanning on the image: - ```shell - docker push /:latest + ```console + $ docker push /:latest ``` ## View the vulnerability report