Before You Begin

These instructions describe how to push a Docker image from Codeship to Container Security.

These steps assume you are already comfortable using Codeship and are already pushing Docker images to a public or private registry. If you are already using Codeship, but have not built Docker container images, familiarize yourself with the Codeship documentation Pushing to a remote registry.


  1. Edit the codeship-services.yml file to use the repository name and image name specified in Container Security.



    image: repository_name/image_name

    dockerfile_path: Dockerfile

    Note: If this is the first time you are pushing an image into the repository, there is not a preconfigured image name. The image name is added automatically after the push from Codeship.

  2. Edit the service section of the the codeship-steps.yml file to look similar to the following example:


    app type: push

    image_name: repository_name/image_name


    encrypted_dockercfg_path: dockercfg.encrypted

    Codeship builds are sent to Container Security for storage, distribution, vulnerability scanning, and malicious code scanning.