Prerequisites#
Running rootless containers#
To ensure enhanced security, it is recommended to run Lungo in a non-root user environment. To achieve this, the administrator needs to perform specific configurations as outlined in the Docker guide or the Podman guide.
To allow non-root users to bind to ports below 1024, you can modify the value of net.ipv4.ip_unprivileged_port_start
using the following command:
Terminal | |
---|---|
1 2 |
|
File permissions#
In a rootless environment, proper file permissions must be set to enable non-root users on the host machine to read and write files created from within the container, and vice versa. It is recommended to create a dedicated user for Lungo and a group for sharing files between the container and the host. The following commands demonstrate this process:
Terminal | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
For more information on file permissions in a rootless environment, you can refer to the documentation.
Avoid using sudo su lungo
to switch to the lungo
user when launching Lungo in a rootless environment,
as it may lead to improper functioning. Instead, set a password
for the lungo
user and log in normally:
Terminal | |
---|---|
1 |
|
Firewall settings#
Depending on your firewall configuration, you might need to allow access to ports 80 and 443, or any other ports that you intend to use for HTTP and HTTPS. If you are using UFW (Uncomplicated Firewall), you can use the following commands:
Terminal | |
---|---|
1 2 |
|
Please make sure to adjust the firewall settings according to your specific needs and security requirements.