Exec node execution environment

I am running node-red in a docker container on an rpios-lite system which comes with busybox tar instead of real tar. I need to use the --checkpoint option of real tar -- and that option is not provided by busybox tar. So I modified the Dockerfile to install the real tar via apk. I confirmed that it worked by running docker exec <container> tar --version. All looks good. But when run tar --version from an exec node, it says it is using busybox.

How come? Is node-red running in some special execution environment?

I think you need to prepend the path, like /bin/tar or wherever it is in your system.

1 Like

I tried that first -- it didn't work. Thanks for the suggestion.

So when you use the full path to the installed one with --version it actually runs a different file?

Cancel this. Turns out that the real tar was not actually installed, as I thought. Thanks for the help.