Report this

What is the reason for this report?

How to upload docker image with .net core app to Digitalocean?

Posted on May 28, 2019

Hello everyone. Could you help me with this service. I try to set up simple ci/cd service. I have git repo with asp .net core application. Than it automaticaly pushes it to travis. How can i upload my entire repo in docker container to Digitalocean from travis? I just can’t inderstand how to upload docker image on Digital. Thank you.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

What I could suggest is just pushing your Docker images to Docker hub for example. And then you could just pull the images on your DigitalOcean droplet.

To push an image to Docker hub you could follow the steps listed on the Docker website:

https://docs.docker.com/v17.12/docker-cloud/builds/push-images/

Once your images have been pushed to the Docker hub, you could pull them as a normal image.

Of course if you want to automate the deployment of the images, you could use something like Ansible for example.

Hope that this helps! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.