In Portainer, create a new container and give it a name and use debian:latest for the image. Map the following ports:
- FTP port 21
- Samba ports 139 & 445
- NFS ports 111 & 2049
- TFTP port 69
- Webmin port 10000
In the Advanced Container Settings under Commands and Logging add the command:
/bin/bash -l
Also select the Interactive & TTY (-i -t) console.
Now click on Volumes and add your volume bind mounts. Then click on Env and add LANG for the name and C.UTF-8 for the value. Last, click on Restart Policy and choose Unless stopped.
Now click on the Deplay the Container button. If the container built successfully then you should be able to access the Exec Console. Run the following commands to install Webmin:
# apt update # apt install curl net-tools # curl -o webmin-setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repos.sh # sh webmin-setup-repos.sh # apt-get install webmin --install-recommends
Now you should be able to log into Webmin at https://localhost:10000.
Source