Pi 4 Docker



  • Installation
  • Configuration
  • Update
  • Troubleshooting

Hashes for docker-4.4.4-py2.py3-none-any.whl; Algorithm Hash digest; SHA256: f3607d5695be025fa405a12aca2e5df702a57db63790c73b927eb6a94aac60af: Copy MD5. The standard Pi-hole customization abilities apply to this docker, but with docker twists such as using docker volume mounts to map host stored file configurations over the container defaults. Volumes are also important to persist the configuration in case you have removed the Pi-hole container which is a typical docker upgrade pattern. The Raspberry Pi is an ARM computer for everybody. Perfect for teaching, coding, surfing the web or simply as a desktop for anyone, anywhere. The Raspberry Pi with Ubuntu is a gateway to the world of open source invention. Orange Pi Zero rev 1.4 reports false high CPU temperatures. Specifications 100tx 1wire 32bit 4 core CAN UASP docker i2c spi spi flash wifi wireguard Allwinner H2+. Using Docker on Raspberry Pi 4. In this section, we will show you how to use Docker on your Raspberry Pi 4. If you have never used Docker, this section should help you get started. To run a Docker container, you need a Docker image on which the Docker container will be based.

The GitLab Docker images are monolithic images of GitLab running all thenecessary services in a single container. If you instead want to install GitLabon Kubernetes, see GitLab Helm Charts.

Find the GitLab official Docker image at:

The Docker images don’t include a mail transport agent (MTA). The recommendedsolution is to add an MTA (such as Postfix or Sendmail) running in a separatecontainer. As another option, you can install an MTA directly in the GitLabcontainer, but this adds maintenance overhead as you’ll likely need to reinstallthe MTA after every upgrade or restart.

In the following examples, if you want to use the latest RC image, usegitlab/gitlab-ee:rc instead.

Docker for Windows is not officially supported. There are known issues with volumepermissions, and potentially other unknown issues. If you are trying to run on Dockerfor Windows, see the getting help page for linksto community resources (IRC, forum, etc.) to seek help from other users.

Prerequisites

Docker is required. See the official installation documentation.

Set up the volumes location

Before setting everything else, configure a new environment variable $GITLAB_HOMEpointing to the directory where the configuration, logs, and data files will reside.Ensure that the directory exists and appropriate permission have been granted.

For Linux users, set the path to /srv/gitlab:

For macOS users, use the user’s $HOME/gitlab directory:

The GitLab container uses host mounted volumes to store persistent data:
Local locationContainer locationUsage
$GITLAB_HOME/data/var/opt/gitlabFor storing application data.
$GITLAB_HOME/logs/var/log/gitlabFor storing logs.
$GITLAB_HOME/config/etc/gitlabFor storing the GitLab configuration files.

Installation

The GitLab Docker images can be run in multiple ways:

Install GitLab using Docker Engine

You can fine tune these directories to meet your requirements.Once you’ve set up the GITLAB_HOME variable, you can run the image:

This will download and start a GitLab container and publish ports needed toaccess SSH, HTTP and HTTPS. All GitLab data will be stored as subdirectories of$GITLAB_HOME. The container will automatically restart after a system reboot.

If you are on SELinux, then run this instead:

This will ensure that the Docker process has enough permissions to create theconfig files in the mounted volumes.

If you’re using the Kerberos integration,you must also publish your Kerberos port (for example, --publish 8443:8443).Failing to do so prevents Git operations with Kerberos.

The initialization process may take a long time. You can track thisprocess with:

After starting a container you can visit gitlab.example.com (orhttp://192.168.59.103 if you used boot2docker on macOS). It might take a whilebefore the Docker container starts to respond to queries.The very first time you visit GitLab, you will be asked to set up the adminpassword. After you change it, you can log in with username root and thepassword you set up.

Install GitLab using Docker Compose

With Docker Compose you can easily configure,install, and upgrade your Docker-based GitLab installation:

  1. Install Docker Compose.
  2. Create a docker-compose.yml file (or download an example):

  3. Make sure you are in the same directory as docker-compose.yml and startGitLab:

Read the “Pre-configure Docker container” sectionto see how the GITLAB_OMNIBUS_CONFIG variable works.

Below is another docker-compose.yml example with GitLab running on a customHTTP and SSH port. Notice how the GITLAB_OMNIBUS_CONFIG variables match theports section:

This is the same as using --publish 8929:8929 --publish 2224:22.

Install GitLab using Docker swarm mode

With Docker swarm mode, you can easilyconfigure and deploy yourDocker-based GitLab installation in a swarm cluster.

In swarm mode you can leverage Docker secretsand Docker configs to efficiently and securely deploy your GitLab instance.Secrets can be used to securely pass your initial root password without exposing it as an environment variable.Configs can help you to keep your GitLab image as generic as possible.

Docker Raspberry Pi 4

Here’s an example that deploys GitLab with four runners as a stack, using secrets and configs:

  1. Set up a Docker swarm.
  2. Create a docker-compose.yml file:

    For simplicity reasons, the network configuration was omitted.More information can be found in the official Compose file reference.

  3. Create a gitlab.rb file:

  4. Create a root_password.txt file:

  5. Make sure you are in the same directory as docker-compose.yml and run:

Configuration

This container uses the official Omnibus GitLab package, so all configurationis done in the unique configuration file /etc/gitlab/gitlab.rb.

To access the GitLab configuration file, you can start a shell session in thecontext of a running container. This will allow you to browse all directoriesand use your favorite text editor:

You can also just edit /etc/gitlab/gitlab.rb:

Once you open /etc/gitlab/gitlab.rb make sure to set the external_url topoint to a valid URL.

To receive e-mails from GitLab you have to configure theSMTP settings because the GitLab Docker image doesn’thave an SMTP server installed. You may also be interested inenabling HTTPS.

After you make all the changes you want, you will need to restart the containerin order to reconfigure GitLab:

GitLab will reconfigure itself whenever the container starts.For more options about configuring GitLab, check theconfiguration documentation.

Pre-configure Docker container

You can pre-configure the GitLab Docker image by adding the environment variableGITLAB_OMNIBUS_CONFIG to Docker run command. This variable can contain anygitlab.rb setting and is evaluated before the loading of the container’sgitlab.rb file. This behavior allows you to configure the external GitLab URL,and make database configuration or any other option from theOmnibus GitLab template.The settings contained in GITLAB_OMNIBUS_CONFIG aren’t written to thegitlab.rb configuration file, and are evaluated on load.

Here’s an example that sets the external URL and enables LFS while startingthe container:

Note that every time you execute a docker run command, you need to providethe GITLAB_OMNIBUS_CONFIG option. The content of GITLAB_OMNIBUS_CONFIG isnot preserved between subsequent runs.

Use tagged versions of GitLab

Tagged versions of the GitLab Docker images are also provided.To see all available tags see:

To use a specific tagged version, replace gitlab/gitlab-ee:latest withthe GitLab version you want to run, for example gitlab/gitlab-ee:12.1.3-ce.0.

Run GitLab on a public IP address

You can make Docker to use your IP address and forward all traffic to theGitLab container by modifying the --publish flag.

Docker raspberry pi 4

To expose GitLab on IP 198.51.100.1:

You can then access your GitLab instance at http://198.51.100.1/ and https://198.51.100.1/.

Expose GitLab on different ports

GitLab will occupy some portsinside the container.

If you want to use a different host port than 80 (HTTP) or 443 (HTTPS),you need to add a separate --publish directive to the docker run command.

For example, to expose the web interface on the host’s port 8929, and the SSH service onport 2289:

  1. Use the following docker run command:

    The format for publishing ports is hostPort:containerPort. Read more inDocker’s documentation aboutexposing incoming ports.
  2. Enter the running container:

  3. Open /etc/gitlab/gitlab.rb with your editor and set external_url:

    The port specified in this URL must match the port published to the host by Docker.Additionally, if the NGINX listen port is not explicitly set innginx['listen_port'], it will be pulled from the external_url.For more information see the NGINX documentation.

  4. Set gitlab_shell_ssh_port:

  5. Finally, reconfigure GitLab:

Following the above example, you will be able to reach GitLab from yourweb browser under <hostIP>:8929 and push using SSH under the port 2289.

A docker-compose.yml example that uses different ports can be found in theDocker compose section.

Update

In most cases, updating GitLab is as easy as downloading the newest Dockerimage tag.

Update GitLab using Docker Engine

To update GitLab that was installed using Docker Engine:

  1. Take a backup.
  2. Stop the running container:

  3. Remove the existing container:

  4. Pull the new image. For example, the latest GitLab image:

  5. Create the container once again with thepreviously specified options:

On the first run, GitLab will reconfigure and update itself.

Refer to the GitLab Upgrade recommendationswhen upgrading between major versions.

Update GitLab using Docker compose

To update GitLab that was installed using Docker Compose:

  1. Take a backup.
  2. Download the newest release and update your GitLab instance:

    If you have used tags instead, you’ll needto first edit docker-compose.yml.

Back up GitLab

You can create a GitLab backup with:

Read more on how to back up and restore GitLab.

If configuration is provided entirely via the GITLAB_OMNIBUS_CONFIG environment variable(per the “Pre-configure Docker Container” steps),meaning no configuration is set directly in the gitlab.rb file, then there is no needto back up the gitlab.rb file.

Installing GitLab Community Edition

To install the Community Edition, replace ee with ce in the commands on thispage.

Troubleshooting

The following information will help if you encounter problems using Omnibus GitLab and Docker.

Diagnose potential problems

Read container logs:

Enter running container:

From within the container you can administer the GitLab container as you wouldnormally administer anOmnibus installation

Docker Raspberry Pi 4 Ubuntu

500 Internal Error

When updating the Docker image you may encounter an issue where all pathsdisplay a 500 page. If this occurs, restart the container to try to rectify theissue:

Permission problems

When updating from older GitLab Docker images you might encounter permissionproblems. This happens when users in previous images were notpreserved correctly. There’s script that fixes permissions for all files.

To fix your container, execute update-permissions and restart thecontainer afterwards:

Windows/Mac: Error executing action run on resource ruby_block[directory resource: /data/GitLab]

This error occurs when using Docker Toolbox with VirtualBox on Windows or Mac,and making use of Docker volumes. The /c/Users volume is mounted as aVirtualBox Shared Folder, and does not support the all POSIX filesystem features.The directory ownership and permissions cannot be changed without remounting, andGitLab fails.

Our recommendation is to switch to using the native Docker install for yourplatform, instead of using Docker Toolbox.

If you cannot use the native Docker install (Windows 10 Home Edition, or Windows 7/8),then an alternative solution is to setup NFS mounts instead of VirtualBox shares forDocker Toolbox’s boot2docker.

Linux ACL issues

If you are using file ACLs on the Docker host, the docker group requires full access to the volumes in order for GitLab to work:

If these are not correct, set them with:

The default group is docker. If you changed the group, be sure to update yourcommands.

/dev/shm mount not having enough space in Docker container

GitLab comes with a Prometheus metrics endpoint at /-/metrics to expose avariety of statistics on the health and performance of GitLab. The filesrequired for this gets written to a temporary file system (like /run or/dev/shm).

By default, Docker allocates 64Mb to the shared memory directory (mounted at/dev/shm). This is insufficient to hold all the Prometheus metrics relatedfiles generated, and will generate error logs like the following:

Other than disabling the Prometheus Metrics from the Admin page, the recommendedsolution to fix this problem is to increase the size of shm to at least 256Mb.If using docker run, this can be done by passing the flag --shm-size 256m.If using a docker-compose.yml file, the shm_size key can be used for thispurpose.

Help & feedback

Docs
Edit this pageto fix an error or add an improvement in a merge request.
Create an issueto suggest an improvement to this page.
Show and post commentsto review and give feedback about this page.
Product
Create an issueif there's something you don't like about this feature.
Propose functionalityby submitting a feature request.
Join First Lookto help shape new features.
Feature availability and product trials
View pricingto see all GitLab tiers and features, or to upgrade.
Try GitLab for freewith access to all features for 30 days.
Get Help

If you didn't find what you were looking for,search the docs.

If you want help with something specific and could use community support,post on the GitLab forum.

For problems setting up or using this feature (depending on your GitLabsubscription).

Request supportPlease enable JavaScript to view thecomments powered by Disqus.Supported

Armbian Focal
mainline based kernel 5.10.y

Raspberry Pi 4 Docker Cluster

Server or light desktop usage scenarios.
High level of software maturity

Armbian Buster
mainline based kernel 5.10.y

Server or light desktop usage scenarios.
High level of software maturity
  • Onboard wireless module (XR819) has poor software support so wireless connection issues are expected
  • Orange Pi Zero rev 1.4 reports false high CPU temperatures.

Specifications

* Specifications differ from hardware revision, model and software support level

FAQs

We provide CLI (command line interface) images first. If the software is stable enough we add the option to upgrade to XFCE desktop. The Build-System relies on Debian and Ubuntu. The availability of different images may vary, most of the time because of driver restriction. Sometimes we provide only testing images.

All images can be built from sources at any time and in rare cases, where you can’t find an image which you need, you can build one.

Preparation

Make sure you have a good & reliable SD card and a proper power supply. Archives can be uncompressed with 7-Zip on Windows, Keka on OS X and 7z on Linux (apt-get install p7zip-full). RAW images can be written with Etcher (all OS). Where images are compressed with .xz you can wrtite them to the SD card with Etcher directly.

Boot

Insert the SD card into the slot, connect a cable to your network if possible or a display and power your board. (First) boot (with DHCP) takes up to 35 seconds with a class 10 SD Card.

Login

Log in as: root Password: 1234. Then you are prompted to change this password (US-Keyboard setting). When done, you are asked to create a normal user-account for your everyday tasks.

SUPPORTED devices are tested and they work apart from known issues and missing features. Support is provided as far as possible (in general there is no support for 3rd party hardware like DVB tuners and software like Kodi). Please check the documentation and existing forum posts before posting a question. Questions on private channels are ignored.

SUITABLE FOR TESTING (WIP) are devices which we’re currently working on but they are not ready! These images are suitable for developers and experienced users. They are not very well tested but they might work without any problems. Your help to improve this situation is greatly appreciated.

SUPPORT ENDED (EOS) status are devices which used to be supported in the past. Reasons for moving to this section:

  • no active software development (mainline u-boot and kernel)
  • no support from the vendor (hardware samples, documentation, software packages)
  • never was sold, only samples in small quantities were available
  • hardware design flaws don’t allow using these devices without stability issues

Support status:

  • images are stable but we don’t test updating,
  • images are provided with no support,
  • most images have frozen kernel and u-boot packages to prevent their upgrades.

NO OFFICIAL SUPPORT (CSC) are devices which are supported by the 3rd party. We usually don’t have hardware samples nor conduct any tests but they might work. There is no support whatsoever.

Each supported Armbian image can be made from scratch – from latest kernel and u-boot sources, updated upstream packages and our most recent bug fixes and improvements. Supported build environment for SDK is Ubuntu Bionic 18.04 x64 but you can run it containerised virtually on any X64 based Linux distribution under Docker. You can re-make live bootable image or just a kernel+dtb(hardware configuration) package which you transfer to your image and install with: dpkg -i linux-image-[branch]-family.deb linux-dtb-[branch]-family.deb. In that process you can enforce many customization. To the kernel or user space. Read more.

Tested 3rd party hardware

Network printer

Laserjet M252

600 dpi

DVB tuner

S960 V2

USB2.0

4G via USB-A

Huawei ME909s

150d/50u Mbps

UART

CH340G

USB2.0

USB Bluetooth

CSR

USB2.0 / v4.0

USB Ethernet

AX88772A

USB 2.0 / 100Mbps

USB WiFi AC

8811au

Raspberry Pi 4 Docker Swarm

USB2.0 / 433Mbps

USB WiFi AC

8814AU

USB3.0 / 1300Mbps

USB WiFi AC

MT7610

Raspberry Pi 4 Docker Compose

USB2.0 / 433Mbps

USB WiFi

Raspberry Pi 4 Docker Images

RTL8188EUS

USB2.0 / 150Mbps

USB WiFi AC

RTL88x2BU

USB2.0 / 867Mbps

Recommended download

Builds were tested for booting and basic operations.
VariantEUUSAAsiaTorrentUser spaceKernelIntegrity checkSizeLast modified
Buster stable5.10.ySHAASC320MMar 9 2021
Focal stable5.10.ySHAASC256MMar 9 2021

Test builds

Builds were made automatically from the trunk with unknown support status. Use at your own risk!
VariantGlobalChinaTorrentUser spaceKernelIntegrity checkSizeLast modified
Hirsute n/an/aunstable5.11.9SHAASC249MMar 26 2021