Docker installation error

Hi, I’m new here and hope this question wasn’t answered somewhere else.
I tried to install docker via the AUR-git link, but I got the Error below, does anybody know what the problem is?

==> Making package: docker-git 1:r44964.18f8ab6fbd-1 (Fri Nov 11 19:15:31 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating moby git repo...
  -> Updating docker-ce git repo...
  -> Updating containerd git repo...
remote: Enumerating objects: 129, done.
remote: Counting objects: 100% (129/129), done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 129 (delta 66), reused 123 (delta 65), pack-reused 0
Empfange Objekte: 100% (129/129), 93.11 KiB | 15.52 MiB/s, fertig.
L��se Unterschiede auf: 100% (66/66), abgeschlossen mit 47 lokalen Objekten.
Von https://github.com/containerd/containerd
 + 819cd5635...761679ea3 refs/pull/7601/head  -> refs/pull/7601/head  (Aktualisierung erzwungen)
 + 68f828a19...daf816751 refs/pull/7601/merge -> refs/pull/7601/merge  (Aktualisierung erzwungen)
  -> Updating runc git repo...
  -> Updating libnetwork git repo...
  -> Updating tini git repo...
  -> Found docker.install
==> Validating source files with md5sums...
    moby ... Skipped
    docker-ce ... Skipped
    containerd ... Skipped
    runc ... Skipped
    libnetwork ... Skipped
    tini ... Skipped
    docker.install ... Passed
==> Extracting sources...
  -> Creating working copy of moby git repo...
Setze Branch 'makepkg' neu
  -> Creating working copy of docker-ce git repo...
Vorherige Position von HEAD war 02c1d87617 Merge pull request #82 from seemethere/increment_to_ga
Zu umgesetztem Branch 'makepkg' gewechselt
  -> Creating working copy of containerd git repo...
Setze Branch 'makepkg' neu
  -> Creating working copy of runc git repo...
Setze Branch 'makepkg' neu
  -> Creating working copy of libnetwork git repo...
Setze Branch 'makepkg' neu
  -> Creating working copy of tini git repo...
Setze Branch 'makepkg' neu
==> Starting prepare()...
~/Installationspakete/docker-git/src
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
  -> building runc
go build -trimpath "-buildmode=pie"  -tags "seccomp apparmor selinux" -ldflags "-X main.gitCommit=v1.1.0-335-gf264cf91 -X main.version=1.1.0+dev " -o runc .
  -> generating runc manpages
/home/nutzer/Installationspakete/docker-git/src/runc/man
go-md2man ist /usr/bin/go-md2man
  -> building containerd
+ bin/ctr
go build  -gcflags=-trimpath=/home/nutzer/Installationspakete/docker-git/src/go/src -buildmode=pie  -o bin/ctr -ldflags '-X github_com/containerd/containerd/version.Version=v1.7.0-beta.0-73-g135af6d9a -X github_com/containerd/containerd/version.Revision=135af6d9ab6cd8898fbfcfd98f2bb9036b3b6de3 -X github_com/containerd/containerd/version.Package=github_com/containerd/containerd -s -w ' -tags "urfave_cli_no_docs"  ./cmd/ctr
+ bin/containerd
go build  -gcflags=-trimpath=/home/nutzer/Installationspakete/docker-git/src/go/src -buildmode=pie  -o bin/containerd -ldflags '-X github_com/containerd/containerd/version.Version=v1.7.0-beta.0-73-g135af6d9a -X github_com/containerd/containerd/version.Revision=135af6d9ab6cd8898fbfcfd98f2bb9036b3b6de3 -X github_com/containerd/containerd/version.Package=github_com/containerd/containerd -s -w ' -tags "urfave_cli_no_docs"  ./cmd/containerd
+ bin/containerd-stress
go build  -gcflags=-trimpath=/home/nutzer/Installationspakete/docker-git/src/go/src -buildmode=pie  -o bin/containerd-stress -ldflags '-X github_com/containerd/containerd/version.Version=v1.7.0-beta.0-73-g135af6d9a -X github_com/containerd/containerd/version.Revision=135af6d9ab6cd8898fbfcfd98f2bb9036b3b6de3 -X github_com/containerd/containerd/version.Package=github_com/containerd/containerd -s -w ' -tags "urfave_cli_no_docs"  ./cmd/containerd-stress
+ bin/containerd-shim
+ bin/containerd-shim-runc-v1
+ bin/containerd-shim-runc-v2
+ binaries
  -> building docker-proxy
  -> building docker cli (17.06.0-ce)
  -> generating cli manpages
/home/nutzer/Installationspakete/docker-git/src/docker-ce/components/cli/man
  -> building dockerd

Removing bundles/

---> Making bundle: dynbinary (in bundles/dynbinary)
Building: bundles/dynbinary-daemon/dockerd
GOOS="" GOARCH="" GOARM=""
Created binary: bundles/dynbinary-daemon/dockerd
Building: bundles/dynbinary-daemon/docker-proxy
GOOS="" GOARCH="" GOARM=""
Created binary: bundles/dynbinary-daemon/docker-proxy

  -> building docker-init
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done
-- Generating done
-- Build files have been written to: /home/nutzer/Installationspakete/docker-git/src/tini
Consolidate compiler generated dependencies of target tini-static
[100%] Built target tini-static
==> Entering fakeroot environment...
==> Starting package()...
  -> runc binary
  -> containerd binaries
  -> docker-proxy binary
  -> dockerd binary
install: cannot stat 'dockerd-dev': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...```

btw In case you are wondering, I replaced all links starting with “github.com” with “github_com” since I am only allowed to put 5 links or less in the post (as a newbie)

I think it’s easier to install Docker from the Arch repos, because they usually run fine. I just installed docker-git to test it and got also an error message.

-> building docker-proxy
no required module provides package github.com/docker/libnetwork/cmd/proxy: go.mod file not found in current directory or any parent directory; see 'go help modules'
==> ERROR: A failure occurred in build().
    Aborting...

-> error making: docker-git

achja

willkommen im purple(Lila) universum :enos_flag: :enos: :penguin_face: :rocketa_purple:

1 Like

What do you exactly mean by “install from Arch repo”?
I tried pacman -S docker which seems to work (see terminal output below), but docker IS NOT installed afterwards!

$ sudo pacman -S docker
warning: docker-1:20.10.21-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)       Old Version   New Version   Net Change

community/docker  1:20.10.21-1  1:20.10.21-1    0.00 MiB

Total Installed Size:  113.55 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                               [--------------------------------] 100%
(1/1) checking package integrity                             [--------------------------------] 100%
(1/1) loading package files                                  [--------------------------------] 100%
(1/1) checking for file conflicts                            [--------------------------------] 100%
:: Processing package changes...
(1/1) reinstalling docker                                    [--------------------------------] 100%
:: Running post-transaction hooks...
(1/5) Creating system user accounts...
(2/5) Reloading system manager configuration...
(3/5) Reloading device manager configuration...
(4/5) Arming ConditionNeedsUpdate...
(5/5) Checking which packages need to be rebuilt
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_ADDRESS = "nl_NL.UTF-8",
	LC_NAME = "nl_NL.UTF-8",
	LC_MONETARY = "nl_NL.UTF-8",
	LC_PAPER = "nl_NL.UTF-8",
	LC_IDENTIFICATION = "nl_NL.UTF-8",
	LC_TELEPHONE = "nl_NL.UTF-8",
	LC_MEASUREMENT = "nl_NL.UTF-8",
	LC_TIME = "nl_NL.UTF-8",
	LC_NUMERIC = "nl_NL.UTF-8",
	LANG = "de_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("de_DE.UTF-8").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_ADDRESS = "nl_NL.UTF-8",
	LC_NAME = "nl_NL.UTF-8",
	LC_MONETARY = "nl_NL.UTF-8",
	LC_PAPER = "nl_NL.UTF-8",
	LC_IDENTIFICATION = "nl_NL.UTF-8",
	LC_TELEPHONE = "nl_NL.UTF-8",
	LC_MEASUREMENT = "nl_NL.UTF-8",
	LC_TIME = "nl_NL.UTF-8",
	LC_NUMERIC = "nl_NL.UTF-8",
	LANG = "de_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("de_DE.UTF-8").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_ADDRESS = "nl_NL.UTF-8",
	LC_NAME = "nl_NL.UTF-8",
	LC_MONETARY = "nl_NL.UTF-8",
	LC_PAPER = "nl_NL.UTF-8",
	LC_IDENTIFICATION = "nl_NL.UTF-8",
	LC_TELEPHONE = "nl_NL.UTF-8",
	LC_MEASUREMENT = "nl_NL.UTF-8",
	LC_TIME = "nl_NL.UTF-8",
	LC_NUMERIC = "nl_NL.UTF-8",
	LANG = "de_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("de_DE.UTF-8").

Danke :slightly_smiling_face:

PS: gibt es eigentlich eine deutsche Unterseite bzw. Forum ?

perl: warning: Falling back to a fallback locale ("de_DE.UTF-8").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:

your locale settings seem to cause problems. You should check and solve them, then the Docker installation will work.

you can try to generate the locale with the following command. maybe it will solve the problem.

sudo locale-gen
1 Like

ja es gibt hier ein deutsches Unterforum, allerdings bekommst du im englischen Forum meist schneller Hilfe.

Why not use normal docker from the repos??

sudo pacman -S docker

It works for me

1 Like

for me too :wink:

he had tried that, but got an error message because of his locale settings.

1 Like

Thanks for the tip with locale…i had somehow to include the dutch language into my locale before generating it then i managed to install docker. For some reason dutch is the preinstalled language for most things in my locale settings.

1 Like