dostergaard (11) [Avatar] Offline
#1
Ch2, Section 2.4.1 Wordpress Example Bug

I tried the Wordpress example in this section but could not start the container because of an error.

Wed Jul 4 09:42:16 2018 (24): Fatal Error Unable to create lock file: Bad file descriptor (9)

I corrected the error by adding “-v /tmp/“ as was suggested by a reader in the forum for the first edition of this book.
docker run -d --name wp3 --link wpdb:mysql -p 80 \
    -v /run/lock/apache2/ \
    -v /run/apache2/ \
    -v /tmp/ \
    --read-only wordpress:4

Macbook Pro, OS X v10.13.5, Docker v18.03.1-ce-mac65