archlinux-docker issueshttps://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues2022-08-22T14:17:13Zhttps://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/59[Question] Has ArchLinux on Docker discontinued support for non-Indo-European...2022-08-22T14:17:13ZAlanIbr2049 shimz[Question] Has ArchLinux on Docker discontinued support for non-Indo-European locales?I recreated a docker Blackarch container today and found that I could not input Japanese characters correctly even if I started it with `-e TZ=Asia/Tokyo -e LANG=C.UTF-8 -e LANGUAGE=en_US:`. So I added `ja_JP.UTF-8 UTF-8` to /etc/locale....I recreated a docker Blackarch container today and found that I could not input Japanese characters correctly even if I started it with `-e TZ=Asia/Tokyo -e LANG=C.UTF-8 -e LANGUAGE=en_US:`. So I added `ja_JP.UTF-8 UTF-8` to /etc/locale.gen and tried to compile with the locale-gen command, but it was impossible.
```
[root@e4535bacdd21 /]# vim /etc/locale.gen
[root@e4535bacdd21 /]# locale-gen
Generating locales...
en_US.UTF-8... done
ja_JP.UTF-8... done [error] cannot open locale definition file `ja_JP': No such file or directory
```
Then I realized the problem in the first place. From the beginning, `/usr/share/i18n/locales/ja_JP` itself did not exist.
```
[root@e4535bacdd21 ~]# file /usr/share/i18n/locales/ja_JP
/usr/share/i18n/locales/ja_JP: cannot open `/usr/share/i18n/locales/ja_JP' (No such file or directory)
[root@e4535bacdd21 ~]# ls /usr/share/i18n/locales/
en_AG en_HK en_PH en_ZW translit_circle translit_fraction
en_AU en_IE en_SC i18n translit_cjk_compat translit_hangul
en_BW en_IL en_SG i18n_ctype translit_cjk_variants translit_narrow
en_CA en_IN en_US iso14651_t1 translit_combining translit_neutral
en_DK en_NG en_ZA iso14651_t1_common translit_compat translit_small
en_GB en_NZ en_ZM iso14651_t1_pinyin translit_font translit_wide
[root@e4535bacdd21 ~]#
```
I am studying information engineering at a college in Japan. The Blackarch Docker image is directly influenced by the ArchLinux Docker image, so I had to create a Blackarch container based on it for the report process. After some research, I think this originates from the ArchLinux side of the system, not from BlackArch.
I'll ask again. Is this a specification? Or is it a bug?https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/68In `os-release` set `VERSION_ID` to the build date2022-06-16T15:23:28ZMorten Linderudfoxboron@archlinux.orgIn `os-release` set `VERSION_ID` to the build dateMost distribution has a `VERSION_ID` in their containers, either being the upstream release (like Fedora 37). But I see opensuse tumbleweed has `VERSION_ID` set as the build date. I wonder if this make sense for us?
<pre>
λ ~ » podman r...Most distribution has a `VERSION_ID` in their containers, either being the upstream release (like Fedora 37). But I see opensuse tumbleweed has `VERSION_ID` set as the build date. I wonder if this make sense for us?
<pre>
λ ~ » podman run -it opensuse/tumbleweed bash
7559de5516ab:/ # cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20220413"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20220413"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20220413"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
</pre>https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/67pacman: error: failed to initialize alpm library2022-05-31T11:40:42Zsolo turnpacman: error: failed to initialize alpm libraryto install git and paru into an arch linux docker image, i followed https://gist.github.com/lbrame/84d445fae17ad98cd6969b30b0f118e8 to set up rootless containers, installed podman and then:
```
> podman run -it --entrypoint=bash archlin...to install git and paru into an arch linux docker image, i followed https://gist.github.com/lbrame/84d445fae17ad98cd6969b30b0f118e8 to set up rootless containers, installed podman and then:
```
> podman run -it --entrypoint=bash archlinux:base-devel
WARN[0000] Failed to decode the keys ["storage.options.override_kernel_check" "storage.options.thinpool.ostree_repo" "storage.options.thinpool.skip_mount_home"] from "/etc/containers/storage.conf".
Resolved "archlinux" as an alias (/etc/containers/registries.conf.d/00-shortnames.conf)
Trying to pull docker.io/archlinux/archlinux:base-devel...
Getting image source signatures
Copying blob e9492d1d75a7 done
Copying blob ab62f34b645b done
Copying config 7078031912 done
Writing manifest to image destination
Storing signatures
[root@868657af4ff2 /]#
[root@868657af4ff2 /]#
[root@868657af4ff2 /]# pacman
error: failed to initialize alpm library:
(root: /, dbpath: /var/lib/pacman/)
could not find or read directory
```https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/63xz to produce base.tar.xz fails in low mem/cpu environment fails2022-04-13T23:08:02ZMatt devxz to produce base.tar.xz fails in low mem/cpu environment failsHi all,
After some troubleshooting where the build would fail for me (see https://bbs.archlinux.org/viewtopic.php?pid=2024067#p2024067), I found that xz is failing to produce the base.tar.xz file. Removing -T0 appears to fix the issue, ...Hi all,
After some troubleshooting where the build would fail for me (see https://bbs.archlinux.org/viewtopic.php?pid=2024067#p2024067), I found that xz is failing to produce the base.tar.xz file. Removing -T0 appears to fix the issue, though it can take quiet a while for the compression to complete, leaving -T0 and removing -9 also appears to fix the issue.
I'm attempting to build this container in a VM with 4 cores & 2 GB memory, though the amount of memory that's available to the build process would likely be far less as i'm running other applications as well.
Using zstd might be a good option instead of using xz here. Perhapes adding -v to the xz command may help show the progress at the very least if it's taking a while to complete.https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/66Tags should be removed from along with the rootfs2022-04-13T16:12:15Zhashworkshashworks@archlinux.orgTags should be removed from along with the rootfsIn !57 @klausenbusk added a cleanup job for the package registry: rootfs older than 60 days are removed. We should do that for the tags as well, currently we store over 500 tags without a reason to do so.In !57 @klausenbusk added a cleanup job for the package registry: rootfs older than 60 days are removed. We should do that for the tags as well, currently we store over 500 tags without a reason to do so.https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/65Arch in Docker as a daily driver2022-04-13T16:06:49ZThomas Buckley-HoustonArch in Docker as a daily driverI've been using this image for a few years now as a daily driver on a Digital Ocean VPS. I do this partly because DO no longer natively support Arch, but also just because it's more convenient to migrate my setup to a new machine by just...I've been using this image for a few years now as a daily driver on a Digital Ocean VPS. I do this partly because DO no longer natively support Arch, but also just because it's more convenient to migrate my setup to a new machine by just copying a Docker image. By "daily driver" I mean I use it for writing code, Matrix chat clients, Syncthing backups, etc.
I've noticed that the setup for this isn't well documented online. Am I really such a minority use case? As such I've taken the initiative of documenting my own approach here: https://github.com/tombh/arch-in-docker-for-daily-use I wonder if anybody here could take a look? I don't know if this is an appropriate place to post this? Apologies if not. But if there are any obvious improvements I'd love to get advice. Thank you very much.https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/51[GitHub Issue] Parametrize 'docker' command2022-04-13T14:47:26Zhashworkshashworks@archlinux.org[GitHub Issue] Parametrize 'docker' commandhttps://github.com/archlinux/archlinux-docker/pull/38
Additionally, this should be added to the README.https://github.com/archlinux/archlinux-docker/pull/38
Additionally, this should be added to the README.https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/64Bogus entries in default PATH2022-04-13T14:27:48ZAntonio RojasBogus entries in default PATHThe default PATH in a container is
```
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
```
`/usr/sbin`, `/sbin` and `/bin` should not be there: they are symlinks to `/usr/bin` and having them in PATH is known to...The default PATH in a container is
```
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
```
`/usr/sbin`, `/sbin` and `/bin` should not be there: they are symlinks to `/usr/bin` and having them in PATH is known to cause issues with cmake and autotools (they don't resolve symlinks so they detect binaries in the symlinked path, then they try to set other paths relative to that which fails).https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/62What a nightmare trying to login here...2022-01-08T12:44:09ZAidan MPWhat a nightmare trying to login here...I came here to file a bug about LXC and then realized it's the wrong repo... sweet jesus tho, friends... if you're going to make me use an OTP then just do that and tie my authenticator to a username. Don't make me jump through endless h...I came here to file a bug about LXC and then realized it's the wrong repo... sweet jesus tho, friends... if you're going to make me use an OTP then just do that and tie my authenticator to a username. Don't make me jump through endless hoops with outdated technology when you're just going to make me use new technology anyway. Have a good one.https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/61image contains too many packages?2021-12-13T22:12:08ZDieter Plaetinckimage contains too many packages?I'm probably missing something obvious, but the README says:
> images are tagged with the included package group / meta package and the timestamp of the date they were generated
Then when I compare the packages installed (+diffutils) w...I'm probably missing something obvious, but the README says:
> images are tagged with the included package group / meta package and the timestamp of the date they were generated
Then when I compare the packages installed (+diffutils) with what's in base, I get way more packages.
```
docker run -it library/archlinux:base
[root@d62b332e2894 /]# pacman -Sy diffutils && diff <(pacman -Qi base | sed -n 's/Depends On : //p' | tr ' ' '\n' | grep -v '^$' | sort) <(pacman -Q | sort | awk '{print $1}')
(...)
0a1,6
> acl
> archlinux-keyring
> argon2
> attr
> audit
> base
1a8
> brotli
2a10,12
> ca-certificates
> ca-certificates-mozilla
> ca-certificates-utils
3a14,20
> cryptsetup
> curl
> dbus
> device-mapper
> diffutils
> e2fsprogs
> expat
9a27
> glib2
10a29,32
> gmp
> gnupg
> gnutls
> gpgme
12a35,37
> hwids
> iana-etc
> icu
13a39
> iptables
14a41,76
> json-c
> kbd
> keyutils
> kmod
> krb5
> less
> libarchive
> libassuan
> libcap
> libcap-ng
> libcroco
> libelf
> libffi
> libgcrypt
> libgpg-error
> libidn2
> libksba
> libldap
> libmnl
> libnetfilter_conntrack
> libnfnetlink
> libnftnl
> libnghttp2
> libnl
> libp11-kit
> libpcap
> libpsl
> libsasl
> libseccomp
> libsecret
> libssh2
> libtasn1
> libtirpc
> libunistring
> libxcrypt
> libxml2
15a78,85
> linux-api-headers
> lz4
> mpfr
> ncurses
> nettle
> npth
> openssl
> p11-kit
16a87,89
> pacman-mirrorlist
> pam
> pambase
17a91,94
> pcre2
> pcre
> pinentry
> popt
19a97
> readline
21a100
> sqlite
22a102
> systemd-libs
24a105
> tzdata
25a107
> util-linux-libs
26a109,110
> zlib
> zstd
[root@d62b332e2894 /]#
```https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/35Provide an additional image for base-devel2021-11-22T16:46:48Zhashworkshashworks@archlinux.orgProvide an additional image for base-develThe [base image](https://hub.docker.com/r/archlinux/base) is getting used in various pipelines, sometimes to build Arch Linux packages. Quite often the `base-devel` package group is installed in those cases [1] [2] [3].
Therefore, I thi...The [base image](https://hub.docker.com/r/archlinux/base) is getting used in various pipelines, sometimes to build Arch Linux packages. Quite often the `base-devel` package group is installed in those cases [1] [2] [3].
Therefore, I think it would be useful to provide an additional image which also includes the `base-devel` group. As the wiki states:
> [The most important package group is base-devel. [...]](https://wiki.archlinux.org/index.php/Meta_package_and_package_group#Groups)
Also, I think it would be quite useful to include the devtools package since I expect more CI builds with docker in the future. In that case, should the package be named `base-devel`? Or something else, like `devel` or `build`?
[1] https://gitlab.archlinux.org/archlinux/archiso/-/blob/master/.gitlab-ci.yml#L7
[2] https://gitlab.archlinux.org/ffy00/pacman/-/blob/master/.gitlab-ci.yml#L10
[3] https://git.hashworks.net/aur-packages/ci-cd/-/blob/master/github-packages.yml#L105Christian RebischkeChristian Rebischkehttps://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/58Keep the commented ParallelDownloads in pacman.conf2021-10-21T06:15:25ZAxel NavarroKeep the commented ParallelDownloads in pacman.confWhen the `/etc/pacman.conf` is edited for the docker with this content:
```
# We cannot check disk space from within a chroot environment
#CheckSpace
```
The parameter `#ParallelDownloads = 5` is fully removed from the file, but that c...When the `/etc/pacman.conf` is edited for the docker with this content:
```
# We cannot check disk space from within a chroot environment
#CheckSpace
```
The parameter `#ParallelDownloads = 5` is fully removed from the file, but that config line is in the `pacman.conf` at the root of this project.
Could we recheck that replace? I didn't find the code who is making this replace yet.https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/26Example of creating an Arch Linux container with Ansible2021-05-02T14:42:18ZSven-Hendrik Haasesvenstaro@archlinux.orgExample of creating an Arch Linux container with Ansible*Created by: miquecg*
Hi,
I'm doing a [small project](https://github.com/miquecg/elixir-ide) for myself that uses an [Ansible role](https://github.com/miquecg/ansible-roles/tree/master/containers/archlinux) to create an Arch Linux cont...*Created by: miquecg*
Hi,
I'm doing a [small project](https://github.com/miquecg/elixir-ide) for myself that uses an [Ansible role](https://github.com/miquecg/ansible-roles/tree/master/containers/archlinux) to create an Arch Linux container from the monthly bootstrap tarball. It also initializes pacman inside the container. There are few pending tasks yet, like reducing the size of the final image. Probably I'll borrow your exclude file as an example.
Maybe you can find this approach interesting. Of course there are many different ways of building images. Good things about Ansible are idempotency, platform independent modules, templating or variables/facts, but of course it's a complex tool on its own. What do you think?Christian RebischkeChristian Rebischkehttps://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/17/tmp recommendation to use `--bind`?2021-05-02T14:41:54ZSven-Hendrik Haasesvenstaro@archlinux.org/tmp recommendation to use `--bind`?*Created by: jeffvandyke*
After an install, `/tmp` is using the filesystem on `/` mount, which ordinarily uses a `tmpfs` filesystem on real arch installs (at least what I've seen). I'm less familiar with Arch setup than most, but should...*Created by: jeffvandyke*
After an install, `/tmp` is using the filesystem on `/` mount, which ordinarily uses a `tmpfs` filesystem on real arch installs (at least what I've seen). I'm less familiar with Arch setup than most, but shouldn't `/tmp` and possibly some other paths (`/run/user/####`?) have docker tmpfs bindings recommended in this project's `README.md` or similar?Christian RebischkeChristian Rebischkehttps://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/18pacman-key cannot locally sign third party keys2021-05-02T14:34:29ZSven-Hendrik Haasesvenstaro@archlinux.orgpacman-key cannot locally sign third party keys*Created by: yan12125*
For example, building the following Dockerfile:
```Dockerfile
FROM archlinux/base
# `pacman-key --recv-keys` does not work well with the default server
ADD https://dl.chyen.cc/lilac.key /
RUN echo $'[archlinuxcn...*Created by: yan12125*
For example, building the following Dockerfile:
```Dockerfile
FROM archlinux/base
# `pacman-key --recv-keys` does not work well with the default server
ADD https://dl.chyen.cc/lilac.key /
RUN echo $'[archlinuxcn]\nServer = https://repo.archlinuxcn.org/$arch' >> /etc/pacman.conf && \
pacman -Sy --noconfirm && \
pacman-key --add /lilac.key && \
pacman-key --lsign-key 83F817213361BF5F02E7E124F9F9FA97A403F63E && \
pacman -S --noconfirm python-git
CMD ["python3.9"]
```
fails with:
```
$ docker build --tag=python3.9 .
Sending build context to Docker daemon 2.048kB
Step 1/4 : FROM archlinux/base
---> 5e2b896c9d63
Step 2/4 : ADD https://dl.chyen.cc/lilac.key /
Downloading [==================================================>] 3.098kB/3.098kB
---> 65c483d90e69
Step 3/4 : RUN echo $'[archlinuxcn]\nServer = https://repo.archlinuxcn.org/$arch' >> /etc/pacman.conf && pacman -Sy --noconfirm && pacman-key --add /lilac.key && pacman-key --lsign-key 83F817213361BF5F02E7E124F9F9FA97A403F63E && pacman -S --noconfirm python-git
---> Running in 47a88e86f434
:: Synchronizing package databases...
downloading core.db...
downloading extra.db...
downloading community.db...
downloading archlinuxcn.db...
==> Updating trust database...
gpg: next trustdb check due at 2019-10-03
==> ERROR: There is no secret key available to sign with.
==> Use 'pacman-key --init' to generate a default secret key.
The command '/bin/sh -c echo $'[archlinuxcn]\nServer = https://repo.archlinuxcn.org/$arch' >> /etc/pacman.conf && pacman -Sy --noconfirm && pacman-key --add /lilac.key && pacman-key --lsign-key 83F817213361BF5F02E7E124F9F9FA97A403F63E && pacman -S --noconfirm python-git' returned a non-zero code: 1
```
Looks like private keys are excluded from this Docker image [1]. Is it intentional? If so, it might be better to document that the pacman keyring needs to be re-initialized before using third party keys.
[1] https://github.com/archlinux/archlinux-docker/blob/master/exclude#L6Christian RebischkeChristian Rebischkehttps://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/46Mark archlinux/base as deprecated and remove it at a later date2021-04-29T00:58:48Zhashworkshashworks@archlinux.orgMark archlinux/base as deprecated and remove it at a later dateWe need to add a deprecation notice to https://hub.docker.com/r/archlinux/base since we now push to `archlinux/archlinux`.
At a later date we need to remove it, when would be a good date?
Also, while we are at it, `archlinux/archlinux`...We need to add a deprecation notice to https://hub.docker.com/r/archlinux/base since we now push to `archlinux/archlinux`.
At a later date we need to remove it, when would be a good date?
Also, while we are at it, `archlinux/archlinux` could use a nice logo, desc and links to this repo.Sven-Hendrik Haasesvenstaro@archlinux.orgSven-Hendrik Haasesvenstaro@archlinux.org2021-04-30https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/57Cleanup package registry2021-04-17T14:19:28ZKristian KlausenCleanup package registryWe are building the images every day and pushing the rootfses to the [package registry](https://gitlab.archlinux.org/archlinux/archlinux-docker/-/packages) (~200MiB per day ~71GiB per year).
We only need to keep the rootfses used by the...We are building the images every day and pushing the rootfses to the [package registry](https://gitlab.archlinux.org/archlinux/archlinux-docker/-/packages) (~200MiB per day ~71GiB per year).
We only need to keep the rootfses used by the weekly releases around (~one year IIRC) and the daily rootfses can be deleted after a few days, let's say a month.https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/52[GitHub Issue] Missing lots of users and groups2020-12-11T15:08:31Zhashworkshashworks@archlinux.org[GitHub Issue] Missing lots of users and groupshttps://github.com/archlinux/archlinux-docker/pull/39
Maybe we need to move the `sysusers` call back to the `Dockerfile`. Also, we should add a test for this case.https://github.com/archlinux/archlinux-docker/pull/39
Maybe we need to move the `sysusers` call back to the `Dockerfile`. Also, we should add a test for this case.hashworkshashworks@archlinux.orghashworkshashworks@archlinux.orghttps://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/54DockerHub README shows ~ as strikeout2020-12-11T15:01:02Zhashworkshashworks@archlinux.orgDockerHub README shows ~ as strikeout![example](https://fb.hash.works/9f5Ha/)
Solution: Remove ~![example](https://fb.hash.works/9f5Ha/)
Solution: Remove ~hashworkshashworks@archlinux.orghashworkshashworks@archlinux.orghttps://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/53DockerHub archlinux/base redirect link requires login2020-12-03T18:23:44Zhashworkshashworks@archlinux.orgDockerHub archlinux/base redirect link requires loginIt should be `https://hub.docker.com/r/archlinux/archlinux` instead of `https://hub.docker.com/repository/docker/archlinux/archlinux`-It should be `https://hub.docker.com/r/archlinux/archlinux` instead of `https://hub.docker.com/repository/docker/archlinux/archlinux`-Sven-Hendrik Haasesvenstaro@archlinux.orgSven-Hendrik Haasesvenstaro@archlinux.org