简体   繁体   中英

Best way to apply changes conf file laradock

What is the best way to apply little changes in Laradock file without rebuilding?

I have to try to make my Laradock and Xdebug working in my Laravel project. I have changed these files laradock/workspace/xdebug.ini and laradock/php-fpm/xdebug.ini .

It's just a little change configuration like change xdebug.remote_host or other, and then I rebuild with the following command:

docker-compose up -d --build php-fpm workspace

Rebuild takes time (too long) because it's downloading dependencies again and create a new image...

<'none>

Env information

  • Ubuntu 20.04
  • Docker version 20.10.12, build e91ed57
  • docker-compose version 1.29.2, build 5becea4c

You can use recreate to attache the new updates

docker-compose up -d --force-recreate php-fpm workspace

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM