RUN printf ‘frappe\nfrappe\nfrappe\nfrappe\n’ | python install.py --develop --user frappe
RUN service mysql stop
RUN service mysql restart
RUN service mysql reload------->after this command docker file is not running can anyone give me some suggestions…
the error is
’Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111 “Connection refused”)’) in docker file
in a docker file you just can prepare the image. so if you start mysql service, this will just result in some .lock files somewhere in the image.
If you want to start a service, you should start it in the container, not in the image.
correct.
start mysql as another docker container and just link it, if you require that service.
or after you got the docker image write a small script which is executed on CMD or on ENTRYPOINT that starts all your needed services.