Skip to content

Recursive chown is really slow #388

Open
@katsar0v

Description

@katsar0v
  • This is a bug report
  • [] This is a feature request
  • I searched existing issues before opening this one (found similar issue, which was closed, but the problem still persist with me)

Expected behavior

I want to build an image with simple wordpress and theme installation (with nginx, mysql and so on).

Actual behavior

I am building an image with WordPress and own templates. In order for everything to work correctly, I need to set chown www-data:www-data /var/www/html/ -R. Unfortunately this takes long time, at least 5 minutes most of the time.

Steps to reproduce the behavior

Step 91/95 : WORKDIR /var/www/html/
 ---> Running in 3bbf283b7604
Removing intermediate container 3bbf283b7604
 ---> abe7aa3891b3
Step 92/95 : RUN chown www-data:www-data . -R

This is where this hangs for at least 5+ minutes.

Output of docker version:

Docker version 18.06.0-ce, build 0ffa825

Output of docker info:

Containers: 6
 Running: 6
 Paused: 0
 Stopped: 0
Images: 2246
Server Version: 18.06.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: d64c661f1d51c48782c9cec8fda7604785f93587
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.13.0-46-generic
Operating System: Ubuntu 17.10
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.688GiB
Name: katsarov-ThinkPad-T470s
ID: R5S6:67UI:QUZK:YBZS:VXLQ:YEFK:SEGU:7EAO:WTUZ:63R5:V3UX:NEJT
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

Additional environment details (AWS, VirtualBox, physical, etc.)

None, running on a fresh ubuntu machine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions