summaryrefslogtreecommitdiff
path: root/docs/tutorials/rootless_tutorial.md
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-03-09 13:34:39 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-03-09 13:39:56 +0100
commit3c473681e39b8344f3f11fe73b09d8657bdd9f52 (patch)
tree588b28a8cbd31e0f0eed0c97a501c9de8c9ba61d /docs/tutorials/rootless_tutorial.md
parent220f9a71e47d1fff893114a025960c2d9c3c16fb (diff)
downloadpodman-3c473681e39b8344f3f11fe73b09d8657bdd9f52.tar.gz
podman-3c473681e39b8344f3f11fe73b09d8657bdd9f52.tar.bz2
podman-3c473681e39b8344f3f11fe73b09d8657bdd9f52.zip
rootles tutorial: remove systemd unit example
The example was not entirely correct. Users should use `podman generate systemd` and use the output either directly or as a template for further adjustments to their needs. Keeping an example in the rootless tutorial is a maintenance burdon and can easily suggest incorrect usage patterns to users. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'docs/tutorials/rootless_tutorial.md')
-rw-r--r--docs/tutorials/rootless_tutorial.md28
1 files changed, 0 insertions, 28 deletions
diff --git a/docs/tutorials/rootless_tutorial.md b/docs/tutorials/rootless_tutorial.md
index 5978d1210..8e048c746 100644
--- a/docs/tutorials/rootless_tutorial.md
+++ b/docs/tutorials/rootless_tutorial.md
@@ -110,34 +110,6 @@ The Podman configuration files for root reside in `/usr/share/containers` with o
The default authorization file used by the `podman login` and `podman logout` commands reside in `${XDG_RUNTIME_DIR}/containers/auth.json`.
-## Systemd unit for rootless container
-
-```
-[Unit]
-Description=nginx
-Requires=user@1001.service
-After=user@1001.service
-[Service]
-Type=simple
-KillMode=none
-MemoryMax=200M
-ExecStartPre=-/usr/bin/podman rm -f nginx
-ExecStartPre=/usr/bin/podman pull nginx
-ExecStart=/usr/bin/podman run --name=nginx -p 8080:80 -v /home/nginx/html:/usr/share/nginx/html:Z nginx
-ExecStop=/usr/bin/podman stop nginx
-Restart=always
-User=nginx
-Group=nginx
-[Install]
-WantedBy=multi-user.target
-```
-
-This example unit will launch a nginx container using the existing user nginx with id 1001, serving static content from /home/nginx/html and limited to 200MB of RAM.
-
-You can use all the usual systemd flags to control the process, including capabilities and cgroup directives to limit memory or CPU.
-
-See #3866 for more details.
-
## More information
If you are still experiencing problems running Podman in a rootless environment, please refer to the [Shortcomings of Rootless Podman](https://github.com/containers/libpod/blob/master/rootless.md) page which lists known issues and solutions to known issues in this environment.