tomsik68 / docker-xampp

Dockerfile to build an image containing XAMPP(MySQL + PHP + PHPMyAdmin) running on Debian system with SSH server
https://hub.docker.com/r/tomsik68/xampp/
MIT License
198 stars 109 forks source link

Deploying the container in a ubuntu server #32

Closed princeshahriar007 closed 3 years ago

princeshahriar007 commented 3 years ago

@tomsik68 I have a ubuntu server, how can I deploy the container on the server ?

tomsik68 commented 3 years ago

There are multiple options based on what you're looking for.

  1. use docker-compose: https://www.docker.com/blog/how-to-deploy-on-remote-docker-hosts-with-docker-compose/
  2. SSH onto your server and start the container there
  3. Setup your local Docker daemon to control remote daemon and start the container there
  4. If you have a local container with data and want to move it, use docker save myXampp > container.tar, move container.tar onto your ubuntu server and execute the following on your server: cat container.tar | docker load -
princeshahriar007 commented 3 years ago

I just want to run the same container under the IP address of my server instead of localhost:41062

tomsik68 commented 3 years ago

The docker save method is probably the easiest one in that case.

tomsik68 commented 3 years ago

I'm closing the issue for now, if there's anything related you'd like to ask, feel free to reopen.