Skip to content

Commit c05bf5b

Browse files
committed
doc: update readme notes on raspberry pi support
1 parent ace4d63 commit c05bf5b

1 file changed

Lines changed: 46 additions & 1 deletion

File tree

docs/README.rst

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The other states support container managmement.
2828
:scale: 100%
2929
:target: https://github.com/semantic-release/semantic-release
3030

31-
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).
3232

3333
.. contents:: **Table of Contents**
3434
:depth: 1
@@ -59,6 +59,7 @@ Available Meta states
5959
*Meta-state (This is a state that includes other states)*.
6060

6161
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>`_
6263

6364
``docker.clean``
6465
^^^^^^^^^^^^^^^^
@@ -247,6 +248,50 @@ Sub-states
247248
Sub-states are available inside sub-directories.
248249

249250

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`dockerd: failed to create NAT chain DOCKER`
261+
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.
262+
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.
263+
On the target Raspberry Pi issue the following to resolve or incorporate the SLS before in your custom SLS
264+
265+
.. code:: bash
266+
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
267+
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
268+
sudo shutdown -r 0 # Do a restart, Docker.d should then function
269+
270+
or the following SLS
271+
.. code:: yaml
272+
iptables:
273+
alternatives.set:
274+
- path: /usr/sbin/iptables-legacy
275+
ip6tables:
276+
alternatives.set:
277+
- path: /usr/sbin/ip6tables-legacy
278+
279+
The provisioning of docker to raspbian uses functionality from https://docs.docker.com/engine/install/debian/#install-using-the-convenience-script. It specifically mentions
280+
Using these scripts is not recommended for production environments, and you should understand the potential risks before you use them:
281+
The reasons are stated as :
282+
283+
* The scripts require root or sudo privileges to run. Therefore, you should carefully examine and audit the scripts before running them.
284+
285+
* 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.
286+
287+
* 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.
288+
289+
* 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.
290+
291+
* Do not use the convenience script if Docker has already been installed on the host machine using another mechanism.
292+
293+
294+
250295
Testing
251296
-------
252297

0 commit comments

Comments
 (0)