</span></code></pre></div></div><divclass=tabbed-block><p><h4>Long-Term Fix</h4></p><p>Upgrade your Docker engine to at least version <code>20.10.10</code>. <ahref=https://docs.docker.com/engine/install>Refer to the official Docker docs for installation/update details.</a></p><p><h4>Short-Term Fix</h4></p><p>For Docker CLI, run your container with:</p><p><code>--security-opt seccomp=unconfined</code></p><p>For Docker Compose, run your container with:</p><divclass="language-yaml highlight"><pre><span></span><code><spanid=__span-3-1><aid=__codelineno-3-1name=__codelineno-3-1href=#__codelineno-3-1></a><spanclass=nt>security_opt</span><spanclass=p>:</span>
</span></code></pre></div></div></div></div></details><detailsclass=faq><summary>My host is incompatible with images based on rdesktop</summary><h5id=rdesktop>My host is incompatible with images based on rdesktop<aclass=headerlinkhref=#rdesktoptitle="Permanent link">¶</a></h5><divclass="tabbed-set tabbed-alternate"data-tabs=2:3><inputchecked=checkedid=rdesktop-descriptionname=__tabbed_2type=radio><inputid=rdesktop-symptomsname=__tabbed_2type=radio><inputid=rdesktop-resolutionname=__tabbed_2type=radio><divclass=tabbed-labels><labelfor=rdesktop-description>Description</label><labelfor=rdesktop-symptoms>Symptoms</label><labelfor=rdesktop-resolution>Resolution</label></div><divclass=tabbed-content><divclass=tabbed-block><p>Some x86_64 hosts have issues running rdesktop based images even with the latest Docker version due to syscalls that are unknown to Docker.</p></div><divclass=tabbed-block><p>If your host is affected you may see errors in your containers such as:</p><divclass="language-text highlight"><pre><span></span><code><spanid=__span-4-1><aid=__codelineno-4-1name=__codelineno-4-1href=#__codelineno-4-1></a>Failed to close file descriptor for child process (Operation not permitted)
</span></code></pre></div></div><divclass=tabbed-block><p>For Docker CLI, run your container with:</p><p><code>--security-opt seccomp=unconfined</code></p><p>For Docker Compose, run your container with:</p><divclass="language-yaml highlight"><pre><span></span><code><spanid=__span-5-1><aid=__codelineno-5-1name=__codelineno-5-1href=#__codelineno-5-1></a><spanclass=w></span><spanclass=nt>security_opt</span><spanclass=p>:</span>
</span></code></pre></div></div></div></div></details><detailsclass=faq><summary>My host is incompatible with images based on Ubuntu Focal and Alpine 3.13 and later</summary><h5id=libseccomp>My host is incompatible with images based on Ubuntu Focal and Alpine 3.13 and later<aclass=headerlinkhref=#libseccomptitle="Permanent link">¶</a></h5><divclass="tabbed-set tabbed-alternate"data-tabs=3:3><inputchecked=checkedid=libseccomp-descriptionname=__tabbed_3type=radio><inputid=libseccomp-symptomsname=__tabbed_3type=radio><inputid=libseccomp-resolutionname=__tabbed_3type=radio><divclass=tabbed-labels><labelfor=libseccomp-description>Description</label><labelfor=libseccomp-symptoms>Symptoms</label><labelfor=libseccomp-resolution>Resolution</label></div><divclass=tabbed-content><divclass=tabbed-block><p>This only affects 32 bit installs of distros based on Debian Buster.</p><p>This is due to a bug in the libseccomp2 library (dependency of Docker itself), which is fixed. However, it's not pushed to all the repositories.</p><p><ahref=https://github.com/moby/moby/issues/40734>A GitHub issue tracking this</a></p><p>You have a few options as noted below. Options 1 is short-term, while option 2 is considered the best option if you don't plan to reinstall the device (option 3).</p></div><divclass=tabbed-block><ul><li>502 errors in <strong>Jellyfin</strong> as seen in <ahref=https://github.com/linuxserver/docker-jellyfin/issues/71>linuxserver/docker-jellyfin#71</a></li><li><code>Error starting framework core</code> messages in the docker log for <strong>Plex</strong>. <ahref=https://github.com/linuxserver/docker-plex/issues/247>linuxserver/docker-plex#247</a></li><li>No WebUI for <strong>Radarr</strong>, even though the container is running. <ahref=https://github.com/linuxserver/docker-radarr/issues/118>linuxserver/docker-radarr#118</a></li><li>Images based on our Nginx base-image(Nextcloud, SWAG, Nginx, etc.) fails to generate a certificate, with a message similar to <code>error getting time:crypto/asn1/a_time.c:330</code></li><li><code>docker exec <container-name> date</code> returns 1970</li></ul></div><divclass=tabbed-block><p>If you decide to do option 1 or 2, you should just need to restart the container after confirming you have libseccomp2.4.4 installed.</p><p>If 1 or 2 did not work, ensure your Docker install is at least version 20.10.0, <ahref=https://docs.docker.com/engine/install/debian/>refer to the official Docker docs for installation.</a></p><p><h4>Manual patch</h4></p><p>Manually install an updated version of the library with dpkg.</p><divclass="language-shell highlight"><pre><span></span><code><spanid=__span-6-1><aid=__codelineno-6-1name=__codelineno-6-1href=#__codelineno-6-1></a>wget<spanclass=w></span>http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.4.4-1~bpo10+1_armhf.deb
</span></code></pre></div><divclass="admonition info"><pclass=admonition-title>Info</p><p>This url may have been updated. Find the latest by browsing <ahref=http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/>here</a>.</p></div><p><h4>Automatic Patch</h4></p><p>Add the backports repo for DebianBuster. As seen <ahref=https://github.com/linuxserver/docker-jellyfin/issues/71#issuecomment-733621693>here</a>.</p><divclass="language-shell highlight"><pre><span></span><code><spanid=__span-7-1><aid=__codelineno-7-1name=__codelineno-7-1href=#__codelineno-7-1></a>sudo<spanclass=w></span>apt-key<spanclass=w></span>adv<spanclass=w></span>--keyserver<spanclass=w></span>keyserver.ubuntu.com<spanclass=w></span>--recv-keys<spanclass=w></span>04EE7237B7D453EC<spanclass=w></span>648ACFD622F3D138
</span></code></pre></div><p><h4>Move to a compatible OS</h4></p><p>Reinstall/update your OS to a version that still gets updates.</p><ul><li>Any distro based on DebianStretch does not seem to have this package available</li><li>DebianBuster based distros can get the package trough backports, as outlined in point 2.</li></ul><divclass="admonition info"><pclass=admonition-title>Info</p><p>RaspberryPI OS (formerly Raspbian) Can be upgraded to run with a 64bit kernel</p></div></div></div></div></details><detailsclass=faq><summary>My host filesystem is incompatible with my docker storage driver</summary><h5id=storage>My host filesystem is incompatible with my docker storage driver<aclass=headerlinkhref=#storagetitle="Permanent link">¶</a></h5><divclass="tabbed-set tabbed-alternate"data-tabs=4:3><inputchecked=checkedid=storage-descriptionname=__tabbed_4type=radio><inputid=storage-symptomsname=__tabbed_4type=radio><inputid=storage-resolutionname=__tabbed_4type=radio><divclass=tabbed-labels><labelfor=storage-description>Description</label><labelfor=storage-symptoms>Symptoms</label><labelfor=storage-resolution>Resolution</label></div><divclass=tabbed-content><divclass=tabbed-block><p>Some host file systems types are not compatible with the default storage driver of docker (overlay2)</p></div><divclass=tabbed-block><p>If your host is affected you may see errors in your containers such as:</p><divclass="language-text highlight"><pre><span></span><code><spanid=__span-8-1><aid=__codelineno-8-1name=__codelineno-8-1href=#__codelineno-8-1></a>ERROR Found no accessible config files
</span></code></pre></div><p>or</p><divclass="language-text highlight"><pre><span></span><code><spanid=__span-9-1><aid=__codelineno-9-1name=__codelineno-9-1href=#__codelineno-9-1></a>Directory not empty. This directory contains an empty ignorecommands sub-directory
</span></code></pre></div></div><divclass=tabbed-block><p>As shown in <ahref=https://docs.docker.com/storage/storagedriver/select-storage-driver/#supported-backing-filesystems>Docker docs</a></p><p>A host filesystem of zfs requires a docker storage driver of zfs and a host file system of btrfs requires a docker storage driver of btrfs. Correcting this oversight will resolve the issue. This is not something that a container change will resolve.</p></div></div></div></details><detailsclass=faq><summary>What is lscr.io</summary><h5id=lscr>What is lscr.io<aclass=headerlinkhref=#lscrtitle="Permanent link">¶</a></h5><p>LSCR is a vanity url for our images, this is provided to us in collaboration with <ahref=https://about.scarf.sh/>scarf.sh</a>. It is not a dedicated docker registry, rather a redirection service. As of writing it redirects to GitHub Container Registry (ghcr.io).</p><p>Aside from giving us the ability to redirect to another backend, if necessary, it also exposes telemetry about pulls, historically only available to the backend provider. We base some decisions on this data, as it gives us a somewhat realistic usage overview (relative to just looking at pulls on DockerHub).</p><p>We have some blog posts related to how we utilize Scarf:</p><ul><li><ahref=https://www.linuxserver.io/blog/end-of-an-arch>End of an Arch</a></li><li><ahref=https://www.linuxserver.io/blog/unravelling-some-stats>Unravelling Some Stats</a></li><li><ahref=https://www.linuxserver.io/blog/wrap-up-warm-for-the-winter>Wrap Up Warm For Winter</a></li></ul></details><detailsclass=faq><summary>I cannot connect to lscr.io</summary><h5id=lscr-no-connect>I cannot connect to lscr.io<aclass=headerlinkhref=#lscr-no-connecttitle="Permanent link">¶</a></h5><p>Due to the nature of Scarf as a Docker gateway which gathers usage metrics, some overzealous privacy-focused blocklists will include its domains.</p><p>If you want to help us in getting a better overview of how people use our containers, you should add <code>gateway.scarf.sh</code> to the allowlist in your blocklist solution.</p><p>Alternatively, you can use Docker Hub or GHCR directly to pull your images, although be aware that all public registries gather user metrics, so this doesn't provide you with any real benefit in that area.</p><p>If Scarf is on the blocklist, you will get an error message like this when trying to pull an image:</p><divclass="language-text highlight"><pre><span></span><code><spanid=__span-10-1><aid=__codelineno-10-1name=__codelineno-10-1href=#__codelineno-10-1></a>Error response from daemon: Get "https://lscr.io/v2/": dial tcp: lookup lscr.io: no such host
</span></code></pre></div><p>This is, however, a generic message. To rule out a service-interruption, you should also see if you can resolve the backend provider.</p><p>Using dig:</p><divclass="language-shell highlight"><pre><span></span><code><spanid=__span-11-1><aid=__codelineno-11-1name=__codelineno-11-1href=#__codelineno-11-1></a>dig<spanclass=w></span>ghcr.io<spanclass=w></span>+short
</span></code></pre></div><p>If you only got a response from ghcr, chances are that Scarf is on the blocklist.</p></details><detailsclass=faq><summary>I want to reverse proxy an application which defaults to https with a self-signed certificate</summary><h5id=strict-proxy>I want to reverse proxy an application which defaults to https with a self-signed certificate<aclass=headerlinkhref=#strict-proxytitle="Permanent link">¶</a></h5><divclass="tabbed-set tabbed-alternate"data-tabs=5:1><inputchecked=checkedid=strict-proxy-traefikname=__tabbed_5type=radio><divclass=tabbed-labels><labelfor=strict-proxy-traefik>Traefik</label></div><divclass=tabbed-content><divclass=tabbed-block><p>In this example, we will configure a serverTransport rule we can apply to a service, as well as telling Traefik to use https on the backend for the service.</p><p>Create a <ahref=https://doc.traefik.io/traefik/routing/services/#serverstransport_1>ServerTransport</a> in your dynamic Traefik configuration; we are calling ours <code>ignorecert</code>.</p><divclass="language-text highlight"><pre><span></span><code><spanid=__span-13-1><aid=__codelineno-13-1name=__codelineno-13-1href=#__codelineno-13-1></a> http:
</span></code></pre></div><p>Then on our <code>foo</code> service we tell it to use this rule, as well as telling Traefik the backend is running on https.</p><divclass="language-text highlight"><pre><span></span><code><spanid=__span-14-1><aid=__codelineno-14-1name=__codelineno-14-1href=#__codelineno-14-1></a> - traefik.http.services.foo.loadbalancer.serverstransport=ignorecert@file
</span></code></pre></div></div></div></div></details><detailsclass=faq><summary>Why does LinuxServer.io recommend to use docker-compose over Portainer?</summary><h5id=portainer>Why does LinuxServer.io recommend to use docker-compose over Portainer?<aclass=headerlinkhref=#portainertitle="Permanent link">¶</a></h5><p>Portainer has many issues which make it hard for us to support, such as:</p><ul><li>Advanced settings are hidden and some aren't available at all</li><li>Incorrect order of source and target of mounts</li><li>Inconsistent case-sensitivity</li><li>No automatically created custom networks for inter-container communication</li><li>Inconsistent compose implementations on different architectures</li><li>Incorrectly applying environment variables on container upgrades</li></ul></details><detailsclass=faq><summary>Inexplicable issues when running ubuntu</summary><h5id=snap>Inexplicable issues when running ubuntu<aclass=headerlinkhref=#snaptitle="Permanent link">¶</a></h5><divclass="tabbed-set tabbed-alternate"data-tabs=6:3><inputchecked=checkedid=snap-descriptionname=__tabbed_6type=radio><inputid=snap-symptomsname=__tabbed_6type=radio><inputid=snap-resolutionname=__tabbed_6type=radio><divclass=tabbed-labels><labelfor=snap-description>Description</label><labelfor=snap-symptoms>Symptoms</label><labelfor=snap-resolution>Resolution</label></div><divclass=tabbed-content><divclass=tabbed-block><p>Many users have been facing issues that are simply inexplicable. The logs show no problems, the compose is fine, eventually it turns out they've installed the SNAP version of docker which is the source of the issues.</p></div><divclass=tabbed-block><p>It's difficult to identify the symptoms, but if you are running ubuntu and believe you have done everything correctly, check for SNAP docker.</p></div><divclass=tabbed-block><p>First the user must be on an appropriate version of ubuntu to face this issue (as far as I am aware)</p><p><code>lsb_release -a</code> would result in something similar to the below output <divclass="language-bash highlight"><pre><span></span><code><spanid=__span-15-1><aid=__codelineno-15-1name=__codelineno-15-1href=#__codelineno-15-1></a>No<spanclass=w></span>LSB<spanclass=w></span>modules<spanclass=w></span>are<spanclass=w></span>available.
</span></code></pre></div></p><p><code>snap list | grep docker</code> would result in something similar to the below output <divclass="language-bash highlight"><pre><span></span><code><spanid=__span-16-1><aid=__codelineno-16-1name=__codelineno-16-1href=#__codelineno-16-1></a>docker<spanclass=w></span><spanclass=m>20</span>.10.24<spanclass=w></span><spanclass=m>2904</span><spanclass=w></span>latest/stable<spanclass=w></span>canonical**<spanclass=w></span>-
</span></code></pre></div></p><p>This means the snap version of docker is installed. Unfortunately, even if the user installed docker from the proper repo, this snap version will coexist AND be preferred. They will need to remove it, as shown below.</p><divclass="language-bash highlight"><pre><span></span><code><spanid=__span-17-1><aid=__codelineno-17-1name=__codelineno-17-1href=#__codelineno-17-1></a>oliver@home-server:~/plexDockerImage$<spanclass=w></span>sudo<spanclass=w></span>snap<spanclass=w></span>remove<spanclass=w></span>docker
</span></code></pre></div><divclass="admonition info"><pclass=admonition-title>Info</p><p>Unless automatic snapshots are disabled, a snapshot of all data for the snap is saved upon removal, which is then available for future restoration with snap restore. The --purge option disables automatically creating snapshots.</p></div><p>Following this, confirm nothing related to snap still shows. <divclass="language-bash highlight"><pre><span></span><code><spanid=__span-18-1><aid=__codelineno-18-1name=__codelineno-18-1href=#__codelineno-18-1></a>~$<spanclass=w></span>sudo<spanclass=w></span>whereis<spanclass=w></span>docker
</span></code></pre></div> above is what we might want to see, below is how it would look if both official AND snap are installed. Seeing the snap stuff removed but the official there is OK. <divclass="language-bash highlight"><pre><span></span><code><spanid=__span-19-1><aid=__codelineno-19-1name=__codelineno-19-1href=#__codelineno-19-1></a>~$<spanclass=w></span>sudo<spanclass=w></span>whereis<spanclass=w></span>docker
</span></code></pre></div> As you can see in the second one, multiple versions can coexist which is a big tshoot problem.</p><p>Once this is complete, if the expected version isn't present, simply follow <ahref=https://docs.docker.com/engine/install/ubuntu/>docker install on ubuntu</a></p><p>When they finish, running <code>docker</code> commands may result in <code>-bash: /snap/bin/docker: No such file or directory</code> if this is the case, this is simply a shell patch issue, they can launch a new shell or simply input <code>hash -r</code> which should resolve the problem. Version info at the time of this writing should be <divclass="language-bash highlight"><pre><span></span><code><spanid=__span-20-1><aid=__codelineno-20-1name=__codelineno-20-1href=#__codelineno-20-1></a>~<spanclass=w></span><spanclass=c1># docker --version && docker compose version</span>