-
Notifications
You must be signed in to change notification settings - Fork 43
Docker
Boris Rybalkin edited this page Jul 4, 2024
·
21 revisions
To run Syncloud image under docker use the following command:
Make sure you are using systemd cgroupdriver
Edit: /etc/docker/daemon.json
{
"exec-opts": ["native.cgroupdriver=systemd"]
}
Restart:
sudo systemctl restart docker
Otherwise container will not function after restart and you will see something like this in your /var/log/syslog:
kernel: systemd[1]: Failed to attach 1 to compat systemd cgroup /docker/.../init.scope: No such file or directory
kernel: systemd[1]: Failed to open pin file: No such file or directory
kernel: systemd[1]: Failed to allocate manager object: No such file or directory
kernel: systemd[1]: Freezing execution.
docker run \
--restart=always \
--name=syncloud \
--volume=/storage:/opt/disk/internal \
--privileged \
--detach=true \
--network=host \
--publish=443:443 \
syncloud/platform-buster-amd64:24.05
Where /storage is a directory on your host with ext4 filesystem
Architectures:
- platform-buster-amd64
- platform-buster-arm
- platform-buster-arm64
It should work on any Linux OS with docker installed.
Open https://localhost (or https://[IP of your docker machine]) in your browser and follow the activation procedure.
To use host usb device add this to the docker command:
--device /dev/ttyUSB0:/dev/ttyUSB0