Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
buildx support in docker
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
user7719
n00b
n00b


Joined: 19 Feb 2021
Posts: 60

PostPosted: Tue Mar 16, 2021 1:36 pm    Post subject: buildx support in docker Reply with quote

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
View user's profile Send private message
LubosD
Apprentice
Apprentice


Joined: 30 Jun 2005
Posts: 211
Location: Czech Republic

PostPosted: Thu Mar 18, 2021 12:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
salfter
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2003
Posts: 89

PostPosted: Thu Dec 28, 2023 6:58 pm    Post subject: Reply with quote

At some point an ebuild was added, so
Code:
sudo emerge docker-buildx
will fix your problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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