Brad
04/06/2022, 10:18 PMBrad
04/06/2022, 10:19 PM--volume //var/run/docker.sock
Brad
04/06/2022, 10:20 PMprefect agent docker start --volume //var/run/docker.sock
then running a flow with some docker tasksBrad
04/06/2022, 10:21 PMdocker.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 workBrad
04/06/2022, 10:42 PMKevin Kho
Brad
04/06/2022, 10:48 PMBrad
04/06/2022, 10:49 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'")
Brad
04/06/2022, 10:57 PMprefect 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 PMBrad
04/06/2022, 11:29 PMBrad
04/07/2022, 12:46 AMKevin Kho