NOTE: These instructions are valid for Ubuntu versions using
systemd
init system.
- Get the latest release
- Put the binary into
/usr/bin/azurefile-dockervolumedriver
- Get the .default and .service files and deploy them
- Reload systemd
sudo -s
- Use wget to get the
azurefile-dockervolumedriver.default
andazurefile-dockervolumedriver.service
files from GitHub. These are in the../contrib/init/systemd
directory. - Download the binary from the "Releases" tab of the repo to
/usr/bin/azurefile-dockervolumedriver
- Use wget to download to dir:
wget -qO/usr/bin/azurefile-dockervolumedriver https://github.com/Azure/azurefile-dockervolumedriver/releases/download/[VERSION]/azurefile-dockervolumedriver
- Make it executable
chmod +x /usr/bin/azurefile-dockervolumedriver
- Use wget to download to dir:
- Save the
.default
file to/etc/default/azurefile-dockervolumedriver
- Edit
/etc/default/azurefile-dockervolumedriver
with your Azure Storage Account credentials. - Save the
.service
file to/etc/systemd/system/azurefile-dockervolumedriver.service
- [Ubuntu 15.x only] Make the requisite directories if they don't exist:
mkdir -p /etc/systemd/system
- [Ubuntu 15.x only] Make the requisite directories if they don't exist:
- Run
systemctl daemon-reload
- Run
systemctl enable azurefile-dockervolumedriver
- Run
systemctl start azurefile-dockervolumedriver
- Check status via
systemctl status azurefile-dockervolumedriver
To test, try to create a volume and running a container with it:
docker volume create -d azurefile --name myvol -o share=myvol
docker run -i -t -v myvol:/data busybox
# cd /data
# touch a.txt
You can find the logs at journalctl -fu azurefile-dockervolumedriver
.