Can't install i2c or ina219 via palette or manually under nodered 4.0.5

As was suggested: don't run node-red in docker, unless you know what you are doing.

If you want to make it work, you can create your own custom docker file, include all required components manually, build the image and start the container.