-
Notifications
You must be signed in to change notification settings - Fork 207
Blobfuse2 Docker Container
Vikas Bhansali edited this page Mar 3, 2023
·
4 revisions
Steps to install: Link
Script to install: Link
docker pull blobfuse2containers.azurecr.io/azure-blobfuse2.2.0.2
docker images ls
: this shall list image just built or downloaded as per above step
- --cap-add=SYS_ADMIN: Adds sys-admin capabilities to linux kernel. This shall be supplied to 'docker run' command.
- --device=/dev/fuse: Allows container to have access /dev/fuse device. This shall be supplied to 'docker run' command.
- Export your Azure Storage Account credentials to environment variables. Below sample command uses these environment variables and exports them to container instance.
- Syslog is configured inside container image and Blobfuse2 logs will go to /var/log/blobfuse2.log.
- Inside container image, storage container is mounted on '/mnt/blobfuse_mnt'
docker run -it --rm --cap-add=SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined -e AZURE_STORAGE_ACCOUNT -e AZURE_STORAGE_ACCESS_KEY -e AZURE_STORAGE_ACCOUNT_CONTAINER blobfuse2containers.azurecr.io/azure-blobfuse2.2.0.2
- Run below command to list running instances and retrieve the instance id 'dokcer ps'
- Use instance id to attach a shell to running instnace
docker exec -it <instance id> bash
docker exec -it <instance id> fusermount -u /mnt/blobfuse_mnt
OR
docker exec -it <instance id> unfuse