View previous topic :: View next topic |
Author |
Message |
user7719 n00b
Joined: 19 Feb 2021 Posts: 60
|
Posted: Tue Mar 16, 2021 1:36 pm Post subject: buildx support in docker |
|
|
Is there any way to enable buildx for docker?
The build.sh script from the gentoo docker images repository uses buildx but when I try to execute it on my system I get the following error:
Code: | TARGET=stage3-amd64 ./build.sh
unknown flag: --file
|
Code: | docker buildx
docker: 'buildx' is not a docker command. |
|
|
Back to top |
|
|
LubosD Apprentice
Joined: 30 Jun 2005 Posts: 211 Location: Czech Republic
|
Posted: Thu Mar 18, 2021 12:36 pm Post subject: |
|
|
Hi,
you need to set
Code: | export DOCKER_CLI_EXPERIMENTAL=enabled |
and you must have buildx installed. Gentoo doesn't seem to install it by default, so just fetch a release and copy the executable into one of these locations:
Code: | [pid 12895] newfstatat(AT_FDCWD, "/home/lubos/.docker/cli-plugins/docker-buildx", 0xc000440108, 0) = -1 ENOENT (No such file or directory)
[pid 12895] newfstatat(AT_FDCWD, "/usr/local/lib/docker/cli-plugins/docker-buildx", 0xc0004401d8, 0) = -1 ENOENT (No such file or directory)
[pid 12895] newfstatat(AT_FDCWD, "/usr/local/libexec/docker/cli-plugins/docker-buildx", 0xc0004402a8, 0) = -1 ENOENT (No such file or directory)
[pid 12895] newfstatat(AT_FDCWD, "/usr/lib/docker/cli-plugins/docker-buildx", 0xc000440378, 0) = -1 ENOENT (No such file or directory)
[pid 12895] newfstatat(AT_FDCWD, "/usr/libexec/docker/cli-plugins/docker-buildx", 0xc000440448, 0) = -1 ENOENT (No such file or directory) |
|
|
Back to top |
|
|
salfter Tux's lil' helper
Joined: 02 Jan 2003 Posts: 89
|
Posted: Thu Dec 28, 2023 6:58 pm Post subject: |
|
|
At some point an ebuild was added, so Code: | sudo emerge docker-buildx | will fix your problem. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|