[GH-ISSUE #2464] Build management docker image error #5266

Open
opened 2026-08-05 01:02:17 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @BJorah on GitHub (Aug 22, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2464

Under this directory "/netbird-0.28.6/management",
I use this docker build -t nb-mgmt:test01 . to build a management docker image, but it but got an error below:

=> ERROR [3/3] COPY netbird-mgmt /go/bin/netbird-mgmt                                                           0.0s
------
 > [3/3] COPY netbird-mgmt /go/bin/netbird-mgmt:
------
Dockerfile:5
--------------------
   3 |     ENTRYPOINT [ "/go/bin/netbird-mgmt","management"]
   4 |     CMD ["--log-file", "console"]
   5 | >>> COPY netbird-mgmt /go/bin/netbird-mgmt
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 30bc39d0-bf08-488b-90ad-f1f08153165b::pg3meq19vofr8fqz9bpwnjkrn: "/netbird-mgmt": not found

For the missing '/netbird-mgmt' , does it mean you create a go mod named 'netbird-mgmt', and use go build to create the executable program named 'netbird-mgmt'?

Originally created by @BJorah on GitHub (Aug 22, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2464 Under this directory "/netbird-0.28.6/management", I use this `docker build -t nb-mgmt:test01 .` to build a management docker image, but it but got an error below: ``` => ERROR [3/3] COPY netbird-mgmt /go/bin/netbird-mgmt 0.0s ------ > [3/3] COPY netbird-mgmt /go/bin/netbird-mgmt: ------ Dockerfile:5 -------------------- 3 | ENTRYPOINT [ "/go/bin/netbird-mgmt","management"] 4 | CMD ["--log-file", "console"] 5 | >>> COPY netbird-mgmt /go/bin/netbird-mgmt -------------------- ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 30bc39d0-bf08-488b-90ad-f1f08153165b::pg3meq19vofr8fqz9bpwnjkrn: "/netbird-mgmt": not found ``` For the missing '/netbird-mgmt' , does it mean you create a go mod named 'netbird-mgmt', and use `go build` to create the executable program named 'netbird-mgmt'?
saavagebueno added the management-servicedocker labels 2026-08-05 01:02:17 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#5266