This repository was archived by the owner on Nov 2, 2024. It is now read-only.
Docker LXC - Alpine variant - NFS shares in /etc/fstab not mounted on boot #1707
Unanswered
bennydiamond
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A clear and concise description of the issue.
Setting up nfs shares to automount using /etc/fstab will not automount in container.
rc-update module
netmount
cannot execute due to the switch-lxc
in thekeyword
section of the script.Removal of the switch
-lxc
in `/etc/init.d/netmount fixes the issue. (Assuming netmount is added to boot process)If relevant, including screenshots or a code block can be helpful in clarifying the issue.
snippet of
/etc/init.d/netmount
Please provide detailed steps to reproduce the issue.
Create container Docker LXC (Alpine variant)
Setup valid nfs share in
/etc/fstab
Enable auto mount in alpine
rc-update add netmount default
reboot
nfs share not mounted
The fix:
remove
-lxc
switch fromkeyword
section of/etc/init.d/netmount
reboot
nfs share is mounted
Beta Was this translation helpful? Give feedback.
All reactions