go-flutter: docker file share failng

full makefile here: https://github.com/winwisely99/enrollment-mod/tree/master/enrollment

log:

github.com/winwisely99/enrollment-mod/enrollment && hover build darwin-pkg
hover: Using engine from cache
hover: Cleaning the build directory
hover: Bundling flutter app
hover: Compiling 'go-flutter' and plugins
hover: Successfully compiled
hover: Building darwin-bundle first
hover: Packaging bundle in /var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/hover-build-enrollment-darwin-bundle593915717
Sending build context to Docker daemon  6.144kB
Step 1/2 : FROM ubuntu:bionic
 ---> 2ca708c1c9cc
Step 2/2 : RUN apt-get update && apt-get install icnsutils -y
 ---> Using cache
 ---> b29840dad2d8
Successfully built b29840dad2d8
Successfully tagged hover-build-packaging-darwin-bundle:latest
/usr/local/bin/docker: Error response from daemon: Mounts denied: 
The path /var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/hover-build-enrollment-darwin-bundle593915717
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.

env:

flutter channel
Flutter channels:
* beta
  dev
  master
  stable


go version
go version go1.13.1 darwin/amd64


docker version
Client: Docker Engine - Community
 Version:           19.03.2
 API version:       1.40
 Go version:        go1.12.8
 Git commit:        6a30dfc
 Built:             Thu Aug 29 05:26:49 2019
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.2
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.8
  Git commit:       6a30dfc
  Built:            Thu Aug 29 05:32:21 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.6
  GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

think its closable. Maybe add this to the wiki ? " On Mac, when building with docker you need to the following share to docker: /var/folders/wp/ "