Question

How to share the application with docker image tar file

Posted October 22, 2021 116 views
Docker

I have web application build with docker container nginx, mysql and php and its running properly.
I just want to know how to share my working web application without using docker hub?
I already tried to export my docker container into image, and load it to another device.

what is the next step? I tried run nginx container but nothing happens.

I want to make portable web application using docker container without using docker hub or any docker repositories, so it can run to another device.

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.

×
Submit an Answer
1 answer

Hello,

If you’ve already transferred the image to the new host, you need to load it into the Docker engine with:

sudo docker load -i your_image.tar

For more information check out this step by step answer here:

https://www.digitalocean.com/community/questions/how-to-copy-a-docker-image-from-one-server-to-another-without-pushing-it-to-a-repository-first

Or take a look at this video here:

Hope that this helps.
Best,
Bobby