diff options
author | xcffl <2216902+xcffl@users.noreply.github.com> | 2021-01-21 20:37:48 +0800 |
---|---|---|
committer | xcffl <2216902+xcffl@users.noreply.github.com> | 2021-01-22 18:28:19 +0800 |
commit | 94f96c78a600af8a67fe8df361e9bb871e00138d (patch) | |
tree | 8b5794400ab5d3d612552f9c88e5d5510d7347d2 /docs/source/markdown/podman-auto-update.1.md | |
parent | f02aba659447ea9198851231d7f11a8bfdfe69ba (diff) | |
download | podman-94f96c78a600af8a67fe8df361e9bb871e00138d.tar.gz podman-94f96c78a600af8a67fe8df361e9bb871e00138d.tar.bz2 podman-94f96c78a600af8a67fe8df361e9bb871e00138d.zip |
Add a notice to remove pod before starting service
Signed-off-by: xcffl <2216902+xcffl@users.noreply.github.com>
Diffstat (limited to 'docs/source/markdown/podman-auto-update.1.md')
-rw-r--r-- | docs/source/markdown/podman-auto-update.1.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-auto-update.1.md b/docs/source/markdown/podman-auto-update.1.md index 219ac03b7..ad1e425aa 100644 --- a/docs/source/markdown/podman-auto-update.1.md +++ b/docs/source/markdown/podman-auto-update.1.md @@ -58,6 +58,11 @@ $ podman generate systemd --new --files bc219740a210455fa27deacc96d50a9e20516492 # Load the new systemd unit and start it $ mv ./container-bc219740a210455fa27deacc96d50a9e20516492f1417507c13ce1533dbdcd9d.service ~/.config/systemd/user $ systemctl --user daemon-reload + +# If the previously created containers or pods are using shared resources, such as ports, make sure to remove them before starting the generated systemd units. +$ podman stop bc219740a210455fa27deacc96d50a9e20516492f1417507c13ce1533dbdcd9d +$ podman rm bc219740a210455fa27deacc96d50a9e20516492f1417507c13ce1533dbdcd9d + $ systemctl --user start container-bc219740a210455fa27deacc96d50a9e20516492f1417507c13ce1533dbdcd9d.service # Auto-update the container |