Store Docker image in Octopus internal Repository

Hi,
I have a build server running Jenkins that builds a Docker image which I then save to a tar file with Docker save. I then push the tar file to my Octopus server and that works just fine.

*sh "docker save -o personws.1.0.$BUILD_NUMBER.tar personws:$BUILD_NUMBER && chmod 666 personws.1.0.$BUILD_NUMBER.tar"*

`*sh "${tool('Octo CLI')}/octo push --package personws.1.0.\$BUILD_NUMBER.tar --replace-existing --server https://octopus.krg.no --apiKey ${APIKey}"*`

When I create my deploy process and using the Docker Run template I can only choose from External Docker feeds. Isn’t this supported? If not is there a workaround available or do I need a Docker Registry software of some kind?

Kind Regards
Björn

Hi Bjorn,

Thanks for getting in touch!

Unfortunately, there isn’t any workaround for this. The way the steps are designed requires the Docker image to be stored and retrieved from a registry as detailed here: https://octopus.com/docs/packaging-applications/package-repositories/docker-registries

Regards,
Paul

ok, thanks Paul!

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.