skip to Main Content

Docker multiplatform image

So I'm stuck with this problem. I have - macos arm laptop where I need to build images - Dockerfile: FROM --platform=${BUILDPLATFORM} golang:1.22 AS builder WORKDIR /workspace # args ARG TARGETPLATFORM ARG TARGETOS ARG TARGETARCH # copy files COPY .…

VIEW QUESTION

Docker volume mount includes invalid characters: If you intended to pass a host directory, use absolute path

I am having trouble with two-way folders with Docker. defaultCfg.Mounts = append(ContainerHostConfig.Mounts, mount.Mount{ Type: mount.TypeVolume, Source: fmt.Sprintf("/root%s", tmp), Target: fmt.Sprintf("%s", tmp), }) Source and target works when using bind (with CreateMountpoint being true on bind config), but on volume i…

VIEW QUESTION
Back To Top
Search