FerryDocs

Install Ferry and create its user

Copy the two programs to the server and create a Linux user that runs only ferryd.

Edit on GitHub
membercan useUser ferryruns ferrydGroup dockerDockerthe Docker socket
The user ferry controls Docker because it is in the group docker

Run these commands on the server, in the folder that contains the two . runs each command as .

Copy the binaries

Terminal
sudo install -m 755 ferryd ferry /usr/local/bin/

The two programs are now in /usr/local/bin. The 755 lets each user run them.

Create the user

Terminal
sudo useradd --system --create-home --home-dir /home/ferry --shell /usr/sbin/nologin --groups docker ferry

The user ferry is a . It is a member of the docker.

Create the folders

Terminal
sudo install -d -o ferry -g ferry -m 700 /var/lib/ferry /etc/ferry

/var/lib/ferry is for the data. /etc/ferry is for the configuration. Only the user ferry can open them.

The group docker has the power of root

ferryd needs the . For this reason the user is in the group docker. A member of this group has the same power as root on the server. Keep the account ferry for ferryd only.

On this page