Using Private Images and Docker Registries

Using private images isn’t directly supported by the Docker Executor. However, you can use the Remote Docker Environment.

If your application requires a proprietary DB for testing, for example:

version: 2
      - image: docker:1.13.1-git
    working_directory: ~/my_app
      - checkout
      - setup_remote_docker

      # start proprietary DB using private Docker image
      - run: |
          docker login -u $DOCKER_USER -p $DOCKER_PASS
          docker run -d --name db company/proprietery-db:1.2.3

      # build and test application
      - run: |
          docker build -t my-app .
          # assuming that our app expects to have DB on localhost
          docker run --network container:db my-app test

If you have any questions, head over to our community forum for support from us and other users.