-
OneDev 9.3.1 switched to call buildx to build images which is much flexible and powerful.
Buildx ships with docker new version by default. For old version you will need to install it separately:
-
does that mean I need to upgrade my agents? because I use the
1dev/agentimages on my nodes. -
Agent does not need to be upgraded (and can not be upgraded manually as it syncs with server automatically).
The build image step calls OS docker facility directly.
-
ok, I'll see to it then. Thanks
-
I am already on the latest docker version. But I found out that if I run the
1dev/agentcontainer on my system and mount docker.sock into it, it doesn't work either.docker run -ti -v /var/run/docker.sock:/var/run/docker.sock 1dev/agent bash Unable to find image '1dev/agent:latest' locally latest: Pulling from 1dev/agent 5e8117c0bd28: Already exists b5e617f0425a: Pull complete ce5a045c6018: Pull complete ff273bcf844a: Pull complete 74615a534607: Pull complete f833c80c5283: Pull complete 4f4fb700ef54: Pull complete e94b55cb7dee: Pull complete Digest: sha256:bfd607bdf9b09c9371a098d300191fbcfaf621003b38781c07478213c8088ab5 Status: Downloaded newer image for 1dev/agent:latest root@11c013abddf8:/agent/bin# docker buildx docker: 'buildx' is not a docker command. See 'docker --help' -
Please install it by running:
sudo apt-get install docker-buildx-plugin -
@cooperspencer Take a look at my last comment in https://code.onedev.io/onedev/server/~issues/1523 maybe that helps.
-
IMHO buildx should be installed in the official agent container and not me making a homebrewed version of the official one.
-
I opened a pull request for it. https://code.onedev.io/onedev/server/~pulls/65
-
Name Previous Value Current Value Priority
Normal
Major
-
OneDev
changed state to 'Closed' 2 years ago
Previous Value Current Value Open
Closed
-
State changed as code fixing the issue is committed (b6aa1a29)
-
OneDev
changed state to 'Released' 2 years ago
Previous Value Current Value Closed
Released
-
State changed as build #4380 is successful
-
I opened a pull request for it. https://code.onedev.io/onedev/server/~pulls/65
Thanks for submitting the fix. I did not realized you are running agent inside container.
Please upgrade to 9.3.2 (to incude buildx in server container as well), and also pull agent image to make things work.
-
no worries, glad I could help
-
What's the best way to keep the agent container updated? Cron job to pull regularly? How about a notification if the agent container is too old?
-
I usually use watchtower to keep my containers up to date. I run it in a cronjob.
-
It rarely needs to be updated. In case it is necessary, the incompatiblity note when upgrade to a new version will mention it. Like in 9.3.2 (added laterly).
-
I usually use watchtower to keep my containers up to date. I run it in a cronjob.
Thanks, I will check it out. I'm relatively new to docker, the update process drives me nuts.
| Type |
Bug
|
| Priority |
Major
|
| Assignee | |
| Affected Versions |
9.3.1
|
| Labels |
No labels
|
I have a repository that automatically builds a container and I get the following error message since yesterday:
I use the
Build Docker Imagetemplate. Can you have a look at it?