dockercontainer-registry

Create Docker Image with pre-Compiled Files


we are developing an application for our customer. The customer must not see the code, since we do not offer the source code to them. Our offer only contains the setup, maintenance and running the Application.

So, we have the Source code here in our private Git. We compile it with the dockerfile and make a docker image out of it.

Since we have no remote access to the customer's Container registry, we cannot simply push a new release version to it.

Is there a way to get new release versions into the customer's registry, without copying the release code to the customer? Maybe pre-compiling, then copy the compiled Code to the customer?

Greetings and thanks in advance!


Solution

  • A docker image can be saved as a tar file using

    docker save -o <filename.tar> <image_name>
    

    You can send that file to your customer, and they can load that file as an image using

    docker load -i <filename.tar>
    

    Now they can push that image to their private repository.