Docker Community Forums

Share and learn in the Docker community.

Can I set custom path to the tar utility [FreeBSD]?

Hello, I am on FreeBSD and using docker with docker daemon running in Linux virtual.
When building docker image, this error from tar occurs:

ERRO[0002] Can’t add file …file… to tar: archive/tar: cannot encode header: Format specifies PAX; and PAX cannot encode Devminor=4294902015

It’s probably due to the different version of tar utility on FreeBSD - I have installed gnu tar (path: /usr/local/bin/gtar).

How to set docker, to use different tar utility?

Thanks!