The present solutions manually create bindpoints inside the image and rely upon a startup CMD that mounts them one-by-one at container instantiation. A better solutions would be to use autofs. This will require the use of a container service solution like supervisord or dumb-init. Solution will more or less get rid of /etc/fstab and replace mount -a with the invocation of autofs.
The present solutions manually create bindpoints inside the image and rely upon a startup CMD that mounts them one-by-one at container instantiation. A better solutions would be to use
autofs. This will require the use of a container service solution likesupervisordordumb-init. Solution will more or less get rid of/etc/fstaband replacemount -awith the invocation ofautofs.