From 5192c6cf50d800999e587ff6664ec3579b4dd7f6 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Fri, 13 Mar 2026 20:04:42 +0300 Subject: [PATCH] Fix Docker install.sh, add instructions for Podman --- .../etc/systemd/system/vitastor-host.service | 2 +- docker/install.sh | 5 ++-- docs/installation/docker.en.md | 26 ++++++++++++++++++- docs/installation/docker.ru.md | 25 ++++++++++++++++++ 4 files changed, 53 insertions(+), 5 deletions(-) diff --git a/docker/etc/systemd/system/vitastor-host.service b/docker/etc/systemd/system/vitastor-host.service index ae78da22..c18e947b 100644 --- a/docker/etc/systemd/system/vitastor-host.service +++ b/docker/etc/systemd/system/vitastor-host.service @@ -7,7 +7,7 @@ PartOf=vitastor.target [Service] Restart=always EnvironmentFile=/etc/vitastor/docker.conf -ExecStart=bash -c 'docker run --rm -i -v /etc/vitastor:/etc/vitastor -v /dev:/dev -v /run:/run \ +ExecStart=bash -c 'docker run --rm -i -v /etc/vitastor:/etc/vitastor -v /dev:/dev -v /run:/run -e SYSTEMD_IN_CHROOT=0 \ --security-opt seccomp=unconfined --privileged --pid=host --log-driver none --network host --name vitastor vitastor:$VITASTOR_VERSION \ sleep.sh' ExecStartPost=udevadm trigger diff --git a/docker/install.sh b/docker/install.sh index df23f878..7c040e50 100755 --- a/docker/install.sh +++ b/docker/install.sh @@ -2,8 +2,7 @@ set -e -cp -urv /etc/default /host-etc/ -cp -urv /etc/systemd /host-etc/ -cp -urv /etc/udev /host-etc/ +cp -urv /etc/systemd/system/vitastor* /host-etc/systemd/system/ +cp -urv /etc/udev/rules.d /host-etc/udev/ cp -urnv /etc/vitastor /host-etc/ cp -urnv /opt/scripts/* /host-bin/ diff --git a/docs/installation/docker.en.md b/docs/installation/docker.en.md index 1f499b63..66a38b61 100644 --- a/docs/installation/docker.en.md +++ b/docs/installation/docker.en.md @@ -31,8 +31,32 @@ The instruction is very simple. `docker run --rm -it -v /etc:/host-etc -v /usr/bin:/host-bin vitalif/vitastor:v3.0.5 install.sh` 3. Reload udev rules: \ `udevadm control --reload-rules` +4. Enable the vitastor-host service: \ + `systemctl enable --now vitastor-host` -And you can return to [Quick Start](../intro/quickstart.en.md). +After these steps, you can return to [Quick Start](../intro/quickstart.en.md). + +## Podman + +If you use Podman, run the following commands as root before installing Vitastor containers: + +``` +ln -s podman /usr/bin/docker + +mkdir -p /etc/systemd/system/systemd-udevd.service.d + +cat >/etc/systemd/system/systemd-udevd.service.d/override.conf </etc/systemd/system/systemd-udevd.service.d/override.conf <