Brad
04/06/2022, 10:18 PM--volume //var/run/docker.sock
prefect agent docker start --volume //var/run/docker.sock
then running a flow with some docker tasksdocker.errors.APIError: 500 Server Error for <http+docker://localnpipe/v1.41/containers/create?name=super-jacamar>: Internal Server Error ("b'\\\\var\\run\\docker.sock%!(EXTRA string=is not a valid Windows path)'")
or
docker.errors.APIError: 500 Server Error for <http+docker://localnpipe/v1.41/containers/create?name=awesome-nyala>: Internal Server Error ("b'mount denied:\nthe source path "\\\\\\\\var\\\\run\\\\docker.sock:\\\\var\\\\run\\\\docker.sock:/var/run/docker.sock:/var/run/docker.sock:rw"\ntoo many colons'")
Anna Geller
Brad
04/06/2022, 10:33 PMKevin Kho
-v /var/run/docker.sock:/var/run/docker.sock
reportedly works. That seems close to what you tried and I am just wondering if it’s something to do with Windows here. You are running Docker on Windows?Brad
04/06/2022, 10:37 PMKevin Kho
Brad
04/06/2022, 10:38 PM--volume //var/run/docker.sock:/var/run/docker.sock
should workKevin Kho
Brad
04/06/2022, 10:48 PMdocker.errors.APIError: 500 Server Error for <http+docker://localnpipe/v1.41/containers/create?name=awesome-nyala>: Internal Server Error ("b'mount denied:\nthe source path "\\\\\\\\var\\\\run\\\\docker.sock:\\\\var\\\\run\\\\docker.sock:/var/run/docker.sock:/var/run/docker.sock:rw"\ntoo many colons'")
prefect agent docker start --volume //var/run/docker.sock
) then I get
<http+docker://localnpipe/v1.41/containers/create?name=mottled-mole>: Internal Server Error ("b'\\\\var\\run\\docker.sock%!(EXTRA string=is not a valid Windows path)'
Kevin Kho
Brad
04/06/2022, 11:12 PMKevin Kho