Adding additional disks to existing container

Hi,
Trying to ad a new disk and make it appear in Container > Webmin.

This is our structure on on server:

  • Ubuntu
  • Docker
  • Portainer
  • We have a few containers. One is running Webmin with Samba on top,

Details:
We need to add a new disk for our Webmin to see.

When we pop a disk in our SATA external drive bay, it does NOT show up in webmin. I guess this is related to the container setup in Portainer.

What is the proper way of adding a disk on a server so it appears in the container and hence in the Webmin?

Thanks!

INFO:
Docker version : 18.03.1-ce
Portainer 1.15.0
Webmin version 1.881
Machine: Linux ubuntu 4.4.0-124-generic #148-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

Containers don’t have notions of “disks”. The right approach is generally:

  1. On the host, mount the disk normally
  2. Stop and delete the existing container
  3. Start a new container from the same image, adding a docker run -v option that points at the additional storage

Reading the description on http://www.webmin.com/ it doesn’t look like an appropriate thing to run inside a Docker container. If you want it to, say, administer the host system’s attached disks, you need to run it as a host system process. (If you need specific hardware like “SATA external drive bay” then your process is not a good candidate for running in Docker.)