Plesk for Windows
Plesk for Linux
kb: how-to
Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to install a Docker image on a Plesk server?
How to upload a Docker image on a Plesk server?
Answer
Warning: This functionality is not supported in Plesk installations running on Windows Server 2008 or in Plesk installed inside Docker.
Click on a section to expand
To install a Docker image from the Catalog, follow these steps:
- Log in to Plesk.
- Install Docker extension.
- Go to Docker > Docker Image Catalog.
- Use the search box to find the images in the catalog.
- To view the application description and documentation on Docker Hub, click the image name.
- To run a specific version, click the arrow next to the Run button, and select the application version.
- To run the latest version of the selected application, click Run.
- Plesk creates the container and asks to specify its settings (environment variables, memory limit, etc...) and then runs it.
After that, container appears in the list of containers at the top of the Docker Catalog page.
To upload and run a Docker image, follow these steps:
- Log in to Plesk.
- Install Docker extension.
- Go to Docker > Upload Image.
- Select the application uploaded and click Run.
- Plesk creates the container and asks to specify its settings (environment variables, memory limit, etc...) and then runs it.
After that, container appears in the list of containers at the top of the Docker Catalog page.
Comments
4 comments
How can i deploy my own jar or war to official Docker image in Plesk? Currently it is not possible to upload own images or use private Docker Hub repositories. I don't understand how to deploy my own application.
Hello Tomasz Lubowiecki
Plesk Docker extensions use Docker Hub, as you've correctly mentioned.
You have 2 options:
1. Upload your image to the shared Docker hub as specified here: https://ropenscilabs.github.io/r-docker-tutorial/04-Dockerhub.html
2. Upload your image locally as specified here: https://docs.plesk.com/en-US/obsidian/administrator-guide/plesk-administration/using-docker.75823/#managing-local-images
In case your applications isn't placed into Docker image yet, this instruction might help: https://medium.com/@wkrzywiec/how-to-put-your-java-application-into-docker-container-5e0a02acdd6b
Can I have some guidance on how to UPGRADE an image, lets say I need to change docker-composer?
After I added a Docker Image for MariaDB server, added a user to this MariaDB server I got an error running repair kit since the database user isn't on the default MariaDB server. Is there a ways to allow access for the default database user also to the MariaDB server running via docker?
Please sign in to leave a comment.