Hybrid gateway entrypoint.sh sed errors w/ tyk.conf as volume

Starting the hybrid gateway w/ docker volume for -v /path/to/tyk.conf:/opt/tyk/tyk.conf results in numerous errors on start like

sed: cannot rename /opt/tyk/sedDQOa2T: Device or resource busy
....

This appears to be done in entrypoint.sh

This results the the container starting but not connecting to the cloud account to pull the api defs

root@db64fa69b468:/opt/tyk# mount | grep tyk
/dev/sdc on /opt/tyk type btrfs (rw,noatime,nobarrier,compress=lzo,discard,space_cache)
/dev/sda1 on /opt/tyk/tyk.conf type xfs (rw,relatime,attr2,inode64,noquota)

Yeah you don’t mount a tyk.conf into the hybrid container - if you are doing that then you can’t use the start script and need to explicitly call the application instead of the entry point in your docker command.

Instead we recommend modifying the config values using environment variables