Package Details: amd-container-toolkit 1.3.0-1

Git Clone URL: https://aur.archlinux.org/amd-container-toolkit.git (read-only, click to copy)
Package Base: amd-container-toolkit
Description: Offers tools that streamline the use of AMD GPUs with containers.
Upstream URL: https://github.com/ROCm/container-toolkit
Licenses: Apache-2.0
Submitter: Lis314
Maintainer: Lis314
Last Packager: Lis314
Votes: 0
Popularity: 0.000000
First Submitted: 2026-01-06 16:45 (UTC)
Last Updated: 2026-04-29 06:54 (UTC)

Latest Comments

Lolle2000la commented on 2026-02-13 09:35 (UTC)

@Lis314 Thank you, I think that is enough for me!

Lis314 commented on 2026-02-12 22:14 (UTC)

@Lolle2000la Thanks for the patch! Checked it on my side - seems there is no problems. Will this mention do? (i myself don't really know how to correctly acknowledge contributions)

# Maintainer: Renat Gorbushin <lis@lis314.ru>
# Contributor: Lolle2000la
...

Lolle2000la commented on 2026-02-12 21:19 (UTC)

I'm not quite sure how to properly contribute to a AUR package so I will just add it like this, but basically, I cut docker out of the equation entirely and just did what the make files does inside a container.

It seems that the execution environment during makepkg completely bars access to the docker socket because of systemd-nspawn policy, but this works:

# Maintainer: Renat Gorbushin <lis@lis314.ru>
pkgname=amd-container-toolkit
pkgver=1.2.0
pkgrel=3
pkgdesc="Offers tools that streamline the use of AMD GPUs with containers."
arch=('x86_64')
url="https://github.com/ROCm/container-toolkit"
license=('Apache-2.0')
depends=('docker')
makedepends=('go' 'git')
_srcname=container-toolkit
source=("${pkgname}-${pkgver}.tar.gz"::https://github.com/ROCm/container-toolkit/archive/refs/tags/v${pkgver}.tar.gz)
sha256sums=('1b4a07f4775aa4538db28c5340c1b917355d3ff3c4a427ddeb349368271e4cf1')

prepare() {
    mkdir -p "${srcdir}/${_srcname}-${pkgver}/bin/deb"
}

build() {
    cd "${srcdir}/${_srcname}-${pkgver}"

    local _build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
    local _ldflags="-X main.Version=${pkgver} -X main.GitCommit=v${pkgver} -X main.BuildDate=${_build_date}"

    CGO_ENABLED=0 go build \
        -trimpath \
        -ldflags "-s -w ${_ldflags}" \
        -o bin/deb/amd-container-runtime \
        ./cmd/container-runtime

    CGO_ENABLED=0 go build \
        -trimpath \
        -ldflags "-s -w ${_ldflags}" \
        -o bin/deb/amd-ctk \
        ./cmd/amd-ctk
}

check() {
    cd "${srcdir}/${_srcname}-${pkgver}"
    # Required for cmd/amd-ctk integration tests
    export AMD_CTK_PATH="${PWD}/bin/deb/amd-ctk"
    go test ./...
}

package() {
    cd "${srcdir}/${_srcname}-${pkgver}"

    install -Dm755 bin/deb/amd-container-runtime "${pkgdir}/usr/local/bin/amd-container-runtime"
    install -Dm755 bin/deb/amd-ctk "${pkgdir}/usr/local/bin/amd-ctk"

    if [ -f LICENSE ]; then
        install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    fi
}

Lolle2000la commented on 2026-02-11 09:42 (UTC)

I tried to manually run docker info and got the following:

~
❯ docker info
Client:
 Version:    29.2.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  0.31.1
    Path:     /usr/lib/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  5.0.2
    Path:     /usr/lib/docker/cli-plugins/docker-compose

Server:
 Containers: 4
  Running: 0
  Paused: 0
  Stopped: 4
 Images: 18
 Server Version: 29.2.1
 Storage Driver: overlay2
  Backing Filesystem: btrfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: true
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 CDI spec directories:
  /etc/.ro1590152162/cdi
  /var/run/cdi
  /home/luca/.config/cdi
  /run/user/1000/cdi
 Discovered Devices:
  cdi: nvidia.com/gpu=0
  cdi: nvidia.com/gpu=GPU-17816f93-e4d1-27e4-aa40-45bf5c27375a
  cdi: nvidia.com/gpu=all
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: dea7da592f5d1d2b7755e3a161be07f43fad8f75.m
 runc version: 1.4.0-1-0-g109da5c-dirty
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  rootless
  cgroupns
 Kernel Version: 6.18.9-2-cachyos
 Operating System: CachyOS
 OSType: linux
 Architecture: x86_64
 CPUs: 32
 Total Memory: 62.71GiB
 Name: luca-hauptcomputer-cachyos
 ID: 953043dd-eb5c-4fb7-8057-b25436f7a0ce
 Docker Root Dir: /home/luca/.local/share/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false
 Firewall Backend: iptables

So the command works in that case but not in the makepkg. The concrete command even works as well on its own:

~/.cache/paru/clone/amd-container-toolkit master
❯ docker info -f "{{println .SecurityOptions}}"
[name=seccomp,profile=builtin name=rootless name=cgroupns]

So why does it not work in the script? Extremely strange.

Lis314 commented on 2026-02-11 09:03 (UTC)

@Lolle2000la Yes, now looking through logs you provided issue is somewhere in your docker daemon. Sadly i can't reproduce it on my end. Looking through new logs, it seems like makepkg can't even run docker info (i use it to determine if docker is rootless and apply patch if needed)

Lolle2000la commented on 2026-02-10 21:01 (UTC)

I tried it, but the error message remained the same.

permission denied while trying to connect to the docker API at unix:///run/user/1000/docker.sock

This makes me think that my docker rootless might be broken, but everything is seemingly fine (containers run fine, no permissions problems there).

Just to make sure it isn't paru that is the problem I did try to build it directly with makepkg

~/.cache/paru/clone/amd-container-toolkit master
❯ LANG=C makepkg
==> Making package: amd-container-toolkit 1.2.0-2 (2026年02月10日 22時01分21秒)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found amd-container-toolkit-1.2.0.tar.gz
  -> Found docker-rootless.patch
==> Validating source files with sha256sums...
    amd-container-toolkit-1.2.0.tar.gz ... Passed
    docker-rootless.patch ... Passed
==> Extracting sources...
  -> Extracting amd-container-toolkit-1.2.0.tar.gz with bsdtar
==> Starting prepare()...
permission denied while trying to connect to the docker API at unix:///run/user/1000/docker.sock
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make -C tools/deb/base-image all INSECURE_REGISTRY=
make[1]: Entering directory '/home/luca/.cache/paru/clone/amd-container-toolkit/src/container-toolkit-1.2.0/tools/deb/base-image'
building dev container without insecure registry
ERROR: permission denied while trying to connect to the docker API at unix:///run/user/1000/docker.sock
make[1]: *** [Makefile:2: all] Error 1
make[1]: Leaving directory '/home/luca/.cache/paru/clone/amd-container-toolkit/src/container-toolkit-1.2.0/tools/deb/base-image'
make: *** [Makefile:67: build-dev-container-deb] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Lis314 commented on 2026-02-10 20:50 (UTC)

@Lolle2000la I added a patch to handle rootless docker

Lolle2000la commented on 2026-02-10 19:23 (UTC)

This package doesn't appear to build if docker-rootless is installed.

==> Making package: amd-container-toolkit 1.2.0-1 (2026年02月10日 20時21分14秒)
==> Retrieving sources...
  -> Found amd-container-toolkit-1.2.0.tar.gz
==> Validating source files with sha256sums...
    amd-container-toolkit-1.2.0.tar.gz ... Passed
==> Making package: amd-container-toolkit 1.2.0-1 (2026年02月10日 20時21分14秒)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found amd-container-toolkit-1.2.0.tar.gz
==> Validating source files with sha256sums...
    amd-container-toolkit-1.2.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting amd-container-toolkit-1.2.0.tar.gz with bsdtar
==> Sources are ready.
amd-container-toolkit-1.2.0-1: parsing pkg list...
==> Making package: amd-container-toolkit 1.2.0-1 (2026年02月10日 20時21分15秒)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make -C tools/deb/base-image all INSECURE_REGISTRY=
make[1]: Entering directory '/home/luca/.cache/paru/clone/amd-container-toolkit/src/container-toolkit-1.2.0/tools/deb/base-image'
building dev container without insecure registry
ERROR: permission denied while trying to connect to the docker API at unix:///run/user/1000/docker.sock
make[1]: *** [Makefile:2: all] Error 1
make[1]: Leaving directory '/home/luca/.cache/paru/clone/amd-container-toolkit/src/container-toolkit-1.2.0/tools/deb/base-image'
make: *** [Makefile:67: build-dev-container-deb] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'amd-container-toolkit-1.2.0-1': 
error: packages failed to build: amd-container-toolkit-1.2.0-1