Public | Automated Build

Last pushed: 4 hours ago
Short Description
Basic ArchLinux installation
Full Description

Basic arch-installation. Updated daily with travis-ci cronjobs. Gitrepo lives on archimg's Github.

If you've got issues, questions or improvements, please open an issue on the Github Issue tracker.

See base/devel for an image with additional base-devel group.

Docker Pull Command
Owner
base
Source Repository

Comments (33)
czka
5 months ago

Hi,

I have recently come up with a Dockerfile (https://github.com/czka/archlinux-docker) which builds Ach Linux x86_64/i686 image "FROM scratch", using a bootsstrap tarball downloaded from one of the official mirrors (https://www.archlinux.org/download/).

It's an equivalent to mkimage-arch.sh (https://wiki.archlinux.org/index.php/Docker#Build_Image), but with the advantage of letting you build Arch Linux Docker images on non-Arch Linux hosts, and as non-root.

It works very well as it is, but there are 3 things that I need to sort out yet to make sure I thought about everything. Please chime in on https://bbs.archlinux.org/viewtopic.php?pid=1667108#p1667108. All input is much appreciated. In case you spot an issue, please report it on https://github.com/czka/archlinux-docker/issues, or send me a pull request.

d3day
6 months ago

pacman -S archlinux-keyring
error: GPGME error: Inappropriate ioctl for device
error: archlinux-keyring: missing required signature
failed to commit transaction (invalid or corrupted package (PGP signature))

nvugteveen
7 months ago

Run: pacman -S archlinux-keyring first to update the keyring. Then pacman -Syu will run properly.

Update of the image would be perferable though.

agauniyal
8 months ago

an update is needed, pacman dosen't even works with current build.

rafaelsoares
a year ago

I've pushed an image that uses official snapshots repositories available at the Arch Linux Archive, built with the official script mkimage-arch.sh.
Docker Hub/Github
Feel free to build your own base image by cloning that repo and running:

# ./mkimage.sh mkimage-arch.sh YYYY/MM/DD
dbrgn
a year ago

To solve the sudo policy plugin error in a PKGBUILD file:

RUN sed -i 's/^(*\s-\snice)/#\1/' /etc/security/limits.conf

chpio
a year ago

@vanga update the kernel @ your host. docker is just a sandbox, all containers are using the kernel of the host machine.

tbsc
a year ago

I had problems using this image, getting the following error during "docker build":

downloading required keys...
:: Import PGP key 2048R/, "Pierre Schmitz pierre@archlinux.de", created: 2011-04-10? [Y/n]
error: key "Pierre Schmitz pierre@archlinux.de" could not be imported
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

I narrowed this down to an out-of-date archlinux-keyring package. Here's what I put in my Dockerfile to solve it, before any other "RUN pacman" lines:

RUN pacman --noconfirm -Sy archlinux-keyring

This refreshes the master package list (-y), then installs the new archlinux-keyring package. Note it is not doing a sysupgrade (-u) in this step; that can happen in a subsequent RUN if desired, e.g.:

RUN pacman --noconfirm -Sy archlinux-keyring
RUN pacman --noconfirm -Su gcc git openssh

vanga
a year ago

Hi,

I see that the kernel version is 3.13.0-48-generic
May I know the reason why its old? Arch community generally uses the latest kernel available afaik.
What do I have to do to update it?

Thanks.

kurari
a year ago

@lenzj

Thank you so much I did not know how to debugging sudo command. it was really helpful thank you. it's working now.