You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A SaltStack formula for Docker on MacOS, GNU/Linux and Windows.
31
+
A SaltStack formula for Docker on MacOS, GNU/Linux, Windows and Raspberry Pi (4b).
32
32
33
33
.. contents:: **Table of Contents**
34
34
:depth: 1
@@ -59,6 +59,7 @@ Available Meta states
59
59
*Meta-state (This is a state that includes other states)*.
60
60
61
61
This state installs the Docker solution (see https://docs.docker.io)
62
+
for Raspberry Pi support please see `Notes <https://github.com/saltstack-formulas/docker-formula/blob/master/docs/README.rst#notes-on-raspberry-pi-support>`_
62
63
63
64
``docker.clean``
64
65
^^^^^^^^^^^^^^^^
@@ -247,6 +248,54 @@ Sub-states
247
248
Sub-states are available inside sub-directories.
248
249
249
250
251
+
Notes on Raspberry Pi support
252
+
-----------------------------
253
+
254
+
There are some caveats with regard to the support of this module on Rasberry Pi 4b's.
255
+
256
+
* This module has only been tested with Raspberry Pi 4b using Rasbian Os Version Buster
257
+
258
+
* This module supports raspbian only when used from Salt 3002.6. Salt 3003.x fails with template isses.
259
+
260
+
* Docker service is known to fail starting when freshly installed via this module on Rasbian Buster with all apt-get updates and upgrades performed. The error found in logs for failing to start is :code:`dockerd: failed to create NAT chain DOCKER`
261
+
262
+
The Reason for this is as documented `here <https://forums.docker.com/t/failing-to-start-dockerd-failed-to-create-nat-chain-docker/78269>`_ . The following Fix followed by a restart fixes this.
263
+
The summary reason is that the docker installer uses iptables for nat. Unfortunately Debian uses nftables. You can convert the entries over to nftables or just setup Debian to use the legacy iptables.
264
+
On the target Raspberry Pi issue the following to resolve or incorporate the SLS before in your custom SLS
sudo shutdown -r 0 # Do a restart, Docker.d should then function
271
+
272
+
or the following SLS
273
+
274
+
.. code-block:: yaml
275
+
276
+
iptables:
277
+
alternatives.set:
278
+
- path: /usr/sbin/iptables-legacy
279
+
ip6tables:
280
+
alternatives.set:
281
+
- path: /usr/sbin/ip6tables-legacy
282
+
283
+
The provisioning of docker to raspbian uses functionality from https://docs.docker.com/engine/install/debian/#install-using-the-convenience-script. It specifically mentions
284
+
Using these scripts is not recommended for production environments, and you should understand the potential risks before you use them:
285
+
The reasons are stated as :
286
+
287
+
* The scripts require root or sudo privileges to run. Therefore, you should carefully examine and audit the scripts before running them.
288
+
289
+
* The scripts attempt to detect your Linux distribution and version and configure your package management system for you. In addition, the scripts do not allow you to customize any installation parameters. This may lead to an unsupported configuration, either from Docker’s point of view or from your own organization’s guidelines and standards.
290
+
291
+
* The scripts install all dependencies and recommendations of the package manager without asking for confirmation. This may install a large number of packages, depending on the current configuration of your host machine.
292
+
293
+
* The script does not provide options to specify which version of Docker to install, and installs the latest version that is released in the “edge” channel.
294
+
295
+
* Do not use the convenience script if Docker has already been installed on the host machine using another mechanism.
0 commit comments