3

How to Install Cloud Commander in OpenMediaVault in Raspberry Pi 4 with Docker and Portainer

* This post may have affiliate links. Please see my disclosure 

Full Step by Step Showing How to install Cloud Commander in OpenMediaVault in Raspberry Pi 4

Suppose you find yourself unable to access OpenMediaVault server file manager running in a Raspberry Pi server via SSH or FTP, and you need access to modify or manage files in your file system. In that case, Cloud Commander can be a handy application that will quickly fulfill your needs.

What is Cloud Commander?

Cloud Commander is a web-based file manager that includes a text editor and command-line console. Cloud Commander helps you manage your server and work with files, directories, and programs in a web browser from any computer, mobile, or tablet.
Source:
https://cloudcmd.io/ 

Components needed for the installation of the container

To accomplish the installation, we will use the following components:

  • OpenMediaVault (Installed on Raspberry Pi 4 )
  • Portnainer

Installing Cloud Commander

To start, open Portainer, and then click on stacks. Add the snippet code below:

version: 2
services:
  web:
    ports:
      - 7000:8000
    volumes:
      - ~:/root
      - /:/mnt/fs
    image: valentinalexeev/rpi-cloudcmd

 

This initial stack will mount your local drives. However, if you have an external drive, you will need to add additional volume entries.


installation of the stack

 

Note: For the admin port, I set the port to 7000, but you can use whatever port you want. Please make sure the port is not in use by another application.

As mentioned previously, it is necessary to add extra volume entries into the stack command for external drive directories to be browsable via Cloud Commander. This is to ensure compatibility with the mounting point path of the drives attached to your Openmediavault.

To complement the external volumes mount, you will need to localize the correct mount point in your OpenMediaVault under file system:

 

Openmedia vault showing file system to complete the installation of cloud commander

 

 

Consider the mount point example above. The stack will look like this:

version: 2
services:
web:
ports:
- 7000:8000
volumes:
- ~:/root
- /:/mnt/fs
- /srv/dev-disk-by-uuid-f5dc4683-a3fc-48e8-bdb5-ec3f8416a007:/srv/dev-disk-by-uuid-f5dc4683-a3fc-48e8-bdb5-ec3f8416a007
image: valentinalexeev/rpi-cloudcmd

NOTE: The mount point used on the example above is a bit too long because I’m using UUID without LABEL. But if you are using LABELs in your driver(s), then your mount point should be displayed similarly to the one below:

version: 2
services:
  web:
    ports:
      - 7000:8000
    volumes:
      - ~:/root
      - /:/mnt/fs
      - /srv/dev-disk-by-label-Files:/srv/dev-disk-by-label-Files
    image: valentinalexeev/rpi-cloudcmd

 

The deployment will only take the time that the system takes to download the image from the docker hub directory,  usually only takes a couple of seconds, o maybe a few minutes, depends how fast your internet connection is.

You will be able to connect to your new Cloud Commander container through http://your-ip-address:7000, and log in with the default user admin and the password admin

Cloud commander in action afeter installed

 

Final thoughts

Although Cloud Commander is a great GUI application to examine your file system, I strongly recommend that you start to explore the command line to manage your file system. In the absence of GUI access, it is always good you be familiar with the file system command line.

 

 

Juana Melo

I'm a self-taught security network engineer and blogger, sharing everything I'm learning along the way.

3 Comments

  1. This is exactly what I was looking for, because I’m trying to setup a Rpi NAS/media server with OMV and docker and was trying to wrap my head around installing stuff with Portainer (including Cloud Commander and Nginx).
    Found a mention in a different guide that valentinalexeev/rpi-cloudcmd is not the most up to date image. What do you know about that?

    • Is true is not the most up-to-date image, but still working great! I usually don’t like to have out-of-date images because of vulnerabilities, one of the reasons I like to use the reverse proxy from the network perspective I only expose the proxy IP. and I also add a layer of protection on my home firewall (Sophos XG) IPS scan that scan all the inbound traffic. I hope they provide some updates on this soon.

      • Most Likely you failed on the port forwarding, make sure to create the proper NAT, and check if you don’t have any conflicting policy that is taking has the full range of ports.

Leave a Reply

Your email address will not be published. Required fields are marked *