osixia / docker-phpLDAPadmin

phpLDAPadmin container image 🐳🌴
MIT License
844 stars 197 forks source link

Problem with adding own config.php #20

Closed paulz1 closed 8 years ago

paulz1 commented 8 years ago

I try to add my own config.php to phpldapadmin container just as explained on GitHub page :

Link your config file at run time to /container/service/phpldapadmin/assets/config.php : docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.8

But the container doesn't start at all....

a) trying to replace "--volume" to "-v" change nothing;

b) I add "-D" option to docker and "--loglevel debug" option to container. It stops here :

Enabling site phpldapadmin. Bootstap phpLDAPadmin... tr: write error: Broken pipe tr: write error sed: cannot rename /container/service/phpldapadmin/assets/sedICYBNx: Device or resource busy *\ /container/run/startup/phpldapadmin failed with status 4

c) just for information, if I remove "--volume" option the messages

tr: write error: Broken pipe tr: write error

are still present, but container do start.

I use

>docker -v
Docker version 1.11.0, build 4dc5990

on ubuntu 14.04

Thanks for your help

osixia commented 8 years ago

Hello, the tr write error are "normal" :)

for the config.php file problem have you tried what is described in "Fix docker mounted file problems" on the readme ?

paulz1 commented 8 years ago

Ok. My fault... I should read all of "Beginner Guide" not only beggining.

--copy-service solved problem at once.

Thank you very-very much.

osixia commented 8 years ago

great, you're welcome