MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

How to mount a dataset using docker?

Open crisansou opened this issue 5 years ago • 3 comments

Hello,

I'm using the docker image python:3.6.9 and when I execute the command dataset.mount(mounted_path) the following message is displayed:

image

I've set the --privileged flag and --cap-add SYS_ADMIN --device /dev/fuse, as suggested by the documentation, but it didn't work. For example:

docker run --privileged --cap-add SYS_ADMIN --device /dev/fuse -d -i --name pythonaml -v "D:\aml:/usr/src" python:3.6.9

Do you know guys what's missing?

Reference:

  • Mount: https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.data.filedataset?view=azure-ml-py#mount-mount-point-none----kwargs-

Best regards, Cristina

crisansou avatar Mar 08 '21 21:03 crisansou

Hi, Crisansou,

This looks like libfuse was not installed, would you double check and try to install it if it's not installed yet?

Thanks, Yuanda

YuandaXu avatar Apr 22 '21 21:04 YuandaXu

Hello @YuandaXu ,

It was not installed. I installed it and the dataset.mount(mounted_path) command worked correctly, thanks!

apt-get install -y libfuse-dev

Best regards, Cristina

libfuse

crisansou avatar Apr 22 '21 23:04 crisansou

Hi, Cristina,

Thanks for updates. Great to hear this~!

Best, Yuanda

YuandaXu avatar Apr 22 '21 23:04 YuandaXu