这是indexloc提供的服务,不要输入任何密码
Skip to content

Can't build app while using Dokku inside Docker #4788

@UlTriX

Description

@UlTriX

Description of problem

While using Dokku inside Docker build system tries to run build container mounting
/home/dokku/app/cache but fails since /home/dokku/app/cache is not accessible from host

How reproducible

every deploy

Steps to Reproduce

  1. dokku inside Docker
  2. dokku apps:create app
  3. git push dokku master:master

Actual Results

remote: Error response from daemon: Mounts denied:         
remote: The path /home/dokku/app/cache is not shared from the host and is not known to Docker.

Expected Results

no errors while building

Environment Information

dokku report app output

-----> uname: Linux e723f15450a1 5.10.25-linuxkit #1 SMP Tue Mar 23 09:27:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
-----> memory:
                     total        used        free      shared  buff/cache   available
       Mem:          16014         461       12117         403        3435       14855
       Swap:          2047           0        2047
-----> docker version:
       Client:
        Version:           20.10.7
        API version:       1.41
        Go version:        go1.13.8
        Git commit:        20.10.7-0ubuntu1~18.04.1
        Built:             Wed Aug  4 22:43:25 2021
        OS/Arch:           linux/amd64
        Context:           default
        Experimental:      true

       Server: Docker Engine - Community
        Engine:
         Version:          20.10.7
         API version:      1.41 (minimum version 1.12)
         Go version:       go1.13.15
         Git commit:       b0f5bc3
         Built:            Wed Jun  2 11:54:58 2021
         OS/Arch:          linux/amd64
         Experimental:     false
        containerd:
         Version:          1.4.6
         GitCommit:        d71fcd7d8303cbf684402823e425e9dd2e99285d
        runc:
         Version:          1.0.0-rc95
         GitCommit:        b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
        docker-init:
         Version:          0.19.0
         GitCommit:        de40ad0
-----> docker daemon info:
       Client:
        Context:    default
        Debug Mode: true

       Server:
        Containers: 2
         Running: 1
         Paused: 0
         Stopped: 1
        Images: 17
        Server Version: 20.10.7
        Storage Driver: overlay2
         Backing Filesystem: extfs
         Supports d_type: true
         Native Overlay Diff: true
         userxattr: false
        Logging Driver: json-file
        Cgroup Driver: cgroupfs
        Cgroup Version: 1
        Plugins:
         Volume: local
         Network: bridge host ipvlan macvlan null overlay
         Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
        Swarm: inactive
        Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
        Default Runtime: runc
        Init Binary: docker-init
        containerd version: d71fcd7d8303cbf684402823e425e9dd2e99285d
        runc version: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
        init version: de40ad0
        Security Options:
         seccomp
          Profile: default
        Kernel Version: 5.10.25-linuxkit
        Operating System: Docker Desktop
        OSType: linux
        Architecture: x86_64
        CPUs: 3
        Total Memory: 15.64GiB
        Name: docker-desktop
        ID: QFMH:HGOJ:J2SR:SYA2:NUTA:G2DG:43QT:OEZS:EF5U:OPJC:C7DN:CWOH
        Docker Root Dir: /var/lib/docker
        Debug Mode: true
         File Descriptors: 49
         Goroutines: 57
         System Time: 2021-09-14T10:48:04.785152882Z
         EventsListeners: 3
        HTTP Proxy: http.docker.internal:3128
        HTTPS Proxy: http.docker.internal:3128
        Registry: https://index.docker.io/v1/
        Labels:
        Experimental: false
        Insecure Registries:
         127.0.0.0/8
        Live Restore Enabled: false

-----> git version: git version 2.17.1
-----> sigil version: 0.6.0
-----> herokuish version:
       herokuish: 0.5.30
       buildpacks:
         heroku-buildpack-multi     v1.0.0
         heroku-buildpack-ruby      v228
         heroku-buildpack-nodejs    v185
         heroku-buildpack-clojure   v87
         heroku-buildpack-python    v197
         heroku-buildpack-java      v69
         heroku-buildpack-gradle    v35
         heroku-buildpack-scala     v90
         heroku-buildpack-play      v26
         heroku-buildpack-php       v196
         heroku-buildpack-go        v153
         buildpack-nginx            v14
         buildpack-null             v3
-----> dokku version: dokku version 0.25.4
-----> plugn version: plugn: 0.6.1
-----> dokku plugins:
         00_dokku-standard    0.25.4 enabled    dokku core standard plugin
         20_events            0.25.4 enabled    dokku core events logging plugin
         app-json             0.25.4 enabled    dokku core app-json plugin
         apps                 0.25.4 enabled    dokku core apps plugin
         builder              0.25.4 enabled    dokku core builder plugin
         builder-dockerfile   0.25.4 enabled    dokku core builder-dockerfile plugin
         builder-herokuish    0.25.4 enabled    dokku core builder-herokuish plugin
         builder-null         0.25.4 enabled    dokku core builder-null plugin
         builder-pack         0.25.4 enabled    dokku core builder-pack plugin
         buildpacks           0.25.4 enabled    dokku core buildpacks plugin
         certs                0.25.4 enabled    dokku core certificate management plugin
         checks               0.25.4 enabled    dokku core checks plugin
         common               0.25.4 enabled    dokku core common plugin
         config               0.25.4 enabled    dokku core config plugin
         cron                 0.25.4 enabled    dokku core cron plugin
         docker-options       0.25.4 enabled    dokku core docker-options plugin
         domains              0.25.4 enabled    dokku core domains plugin
         enter                0.25.4 enabled    dokku core enter plugin
         git                  0.25.4 enabled    dokku core git plugin
         logs                 0.25.4 enabled    dokku core logs plugin
         network              0.25.4 enabled    dokku core network plugin
         nginx-vhosts         0.25.4 enabled    dokku core nginx-vhosts plugin
         plugin               0.25.4 enabled    dokku core plugin plugin
         proxy                0.25.4 enabled    dokku core proxy plugin
         ps                   0.25.4 enabled    dokku core ps plugin
         registry             0.25.4 enabled    dokku core registry plugin
         repo                 0.25.4 enabled    dokku core repo plugin
         resource             0.25.4 enabled    dokku core resource plugin
         run                  0.25.4 enabled    dokku core run plugin
         scheduler-docker-local 0.25.4 enabled    dokku core scheduler-docker-local plugin
         scheduler-null       0.25.4 enabled    dokku core scheduler-null plugin
         shell                0.25.4 enabled    dokku core shell plugin
         ssh-keys             0.25.4 enabled    dokku core ssh-keys plugin
         storage              0.25.4 enabled    dokku core storage plugin
         tags                 0.25.4 enabled    dokku core tags plugin
         tar                  0.25.4 enabled    dokku core tar plugin
         trace                0.25.4 enabled    dokku core trace plugin

How (deb/make/rpm) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?

Inside Docker -> https://hub.docker.com/r/dokku/dokku

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions