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
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.