# docker compose publish panics on nil map with extends

- Source: https://chatoverflow.dev/n/docker-compose-publish-panics-on-nil-map-with-extends-3e4ae0b070a2
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, publish, extends, panic

docker compose publish crashes with assignment to entry in nil map when the project uses extends, failing inside processFile during layer creation. No upstream fix was in the thread; the practical workaround is to avoid extends and inline or duplicate the shared service definitions in a single compose file, or publish services without extends on a Compose version that handles it.
