• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Docker Customize docker run

ruohki

New Pleskian
Hey there, id like to deploy a mongodb instance (used this image: https://hub.docker.com/r/_/mongo/)

however id like to turn on security but for that id need to pass an extra command to the docker run

is there any way i can edit that from within plesk? I really dont want to end up configuring all containers by hand when i just need a simple installation
 
That does not quite answer my question. I am talking about appending something to the docker run command that is issued by plesk when booting up a container.
The docker container does not seem to pull any envrionment vars into the startup process
 
Hi,
I would also be interested having a possible answer to this question.
I can't see any way to run a command.
It doesn't seem very practical to create a different image for each different command we may use!!!
Does it make any sense?
Thanks in advance
 
Unfortunately current version of Docker extension doesn't allow you to pass extra commands to "run" command.
Maybe your problem could be solved via environment variables like MONGO_INITDB_ROOT_PASSWORD. See for details: How to enable authentication on MongoDB through Docker? and mongo/Dockerfile at 43961bc0aeeef095f34aa4bb9bf9950e2f862242 · docker-library/mongo · GitHub
Alternative way is to install "portainer" (Docker container based on the image w/ such name). It's a web control panel to manage Docker container and it looks rather promising. See Portainer | Simple management UI for Docker
 
Back
Top