title: Is there a way to seamlessly transfer docker-compose containers to another host without building?
body: <p>I'm setting up a CI/CD solution. I would like to run a docker application on a production machine that has no access to the internet.</p>
  <p>The constraints are as follows:</p>
  <ul>
  <li><p>Build needs to happen on machine A</p>
  </li>
  <li><p>Resulting image/container needs to be exported and transported to machine B</p>
  </li>
  </ul>
  <p>Optionally: Run the container again with a docker-compose file</p>
  <p>I know about docker commit and repos, but this is sadly not an option, as the resulting server does not have access to the internet.</p>
  <p>Here's the docker-compose.yaml; this is not set in stone and can change however necessary</p>
  <pre class="lang-yaml prettyprint-override"><code>version: '2'
  services:
    test_dev_app:
      image: testdevapp:latest
      container_name: test_dev_app
      hostname: test_dev_app
      environment:
        DJANGO_SETTINGS_MODULE: &quot;settings.production&quot;
        APPLICATION_RUN_TYPE: &quot;uwsgi&quot;
      volumes:
        - ./:/data/application
      ports:
        - &quot;8000:8000&quot;
        - &quot;8080:8080&quot;
  </code></pre>
  <p>I'd expect to be able to properly transport a container or image and use the same image on a different machine with <code>docker-compose up</code></p>