I am building an image with WordPress and own templates. Unfortunately this takes long time, at least 5 minutes most of the time.

  • 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: [url=https://index.docker.io/v1/]https://index.docker.io/v1/[/url]
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.
You already invited:

Ezra - Sql

Upvotes from:

can you attach your Dockerfile too? :)
Step 91/95 smells a bit :D

Leon

Upvotes from:

It sounds like it should be possible to reproduce by touching a bajillion files, or touch 100 files and then cp -r a thousand times.
Are a bajilliion files in one folder the problem or many folders with many files?

Roman

Upvotes from:

I just ran your file in play-with-docker.com
Already finished
chown test:test . -R probably took less than five seconds
 
But I don't know what cloud infra PWD is run on so...

If you wanna answer this question please Login or Register