Skip to content

Commit 67e668b

Browse files
committed
explain how to run linuxfr with rootless containers
1 parent de0b87e commit 67e668b

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

Docker.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,23 @@ docker compose exec linuxfr.org bin/rails db:setup
2727
Finally, the environment is ready and you can open [http://dlfp.lo](http://dlfp.lo)
2828
in your favorite browser.
2929

30-
Note: to be able to access this URL, you'll need to add the following line
31-
into the `/etc/hosts` file of your machine:
30+
Notes:
31+
32+
1. to be able to access this URL, you'll need to add the following line
33+
into the `/etc/hosts` file of your machine:
34+
35+
```
36+
127.0.0.1 dlfp.lo image.dlfp.lo
37+
```
38+
39+
2. for [rootless containers](https://rootlesscontaine.rs/), you'll need
40+
to allow standard users to listen on ports less than 1024
41+
(this is needed because linuxfr use port 80 and 443):
42+
43+
```sh
44+
sudo sysctl net.ipv4.ip_unprivileged_port_start=80
45+
```
3246

33-
```
34-
127.0.0.1 dlfp.lo image.dlfp.lo
35-
```
3647

3748
Personalize configuration
3849
=========================

0 commit comments

Comments
 (0)