Trying to mount a remote linux drive from inside an alpine container on LCOW
MattGarnettWelsh opened this issue · comments
Docker info:
Client:
Debug Mode: false
Plugins:
app: Docker Application (Docker Inc., v0.8.0)
buildx: Build with BuildKit (Docker Inc., v0.3.1-tp-docker)
Server:
Containers: 6
Running: 6
Paused: 0
Stopped: 0
Images: 14
Server Version: 19.03.5
Storage Driver: windowsfilter (windows) lcow (linux)
Windows:
LCOW:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics internal l2bridge l2tunnel nat null overlay private transparent
Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 18362 (18362.1.amd64fre.19h1_release.190318-1202)
Operating System: Windows 10 Pro Version 1903 (OS Build 18362.476)
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 31.92GiB
Name: DESKTOP-PAVE4Q1
ID: H32P:DKDW:VCUR:3ART:FT7Q:KP5K:BGCK:IB4B:NGZO:3RUT:PVYE:RGWC
Docker Root Dir: C:\ProgramData\Docker
Debug Mode: true
File Descriptors: -1
Goroutines: 104
System Time: 2019-11-22T13:10:53.1405642Z
EventsListeners: 2
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Dockerfile:
api:
cap_add:
- SYS_ADMIN
devices:
- "/dev/fuse:/dev/fuse"
Running a mount command after installing fuse, sshfs and ssh:
sshfs -o allow_other,StrictHostKeyChecking=no,password_stdin user@hostname.fully.qualified:/home/data /mnt/api/6cfe000c-f450-4786-8e4d-dbc9fe417972
fuse: device not found, try 'modprobe fuse' first
whereis modprobe and whereis fuse checks:
root@d5aa5c9b976f:/var/api# whereis modprobe
modprobe:
root@d5aa5c9b976f:/var/api# whereis fuse
fuse: /etc/fuse.conf
Run modprobe fuse
:
bash: modprobe: command not found
Install modprobe apt-get install module-init-tools
(This installs kmod as required etc...)
Re-run the command modprobe fuse
:
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.19.27-linuxkit/modules.dep.bin'
modprobe: FATAL: Module fuse not found in directory /lib/modules/4.19.27-linuxkit
Is this a limitation of linuxkit/lcow?