diff --git a/app/docker/components/volumesNFSForm/volumesnfsForm.html b/app/docker/components/volumesNFSForm/volumesnfsForm.html index ea143411b..b8bba69f6 100644 --- a/app/docker/components/volumesNFSForm/volumesnfsForm.html +++ b/app/docker/components/volumesNFSForm/volumesnfsForm.html @@ -41,7 +41,7 @@ class="form-control" ng-model="$ctrl.data.mountPoint" name="nfs_mountpoint" - placeholder="e.g. /export/share, :/export/share, /share or :/share" + placeholder="e.g. /export/share, :/export/share, address:/export/share, /share, :/share or address:/share" required /> diff --git a/app/docker/views/volumes/create/createVolumeController.js b/app/docker/views/volumes/create/createVolumeController.js index fb00e7ec9..f8fd902af 100644 --- a/app/docker/views/volumes/create/createVolumeController.js +++ b/app/docker/views/volumes/create/createVolumeController.js @@ -99,7 +99,7 @@ angular.module('portainer.docker').controller('CreateVolumeController', [ } driverOptions.push({ name: 'o', value: options }); - var mountPoint = data.mountPoint[0] === ':' ? data.mountPoint : ':' + data.mountPoint; + var mountPoint = data.mountPoint.indexOf(':') === -1 ? ':' + data.mountPoint : data.mountPoint; driverOptions.push({ name: 'device', value: mountPoint }); }