Use sudo(8) to create directory and hosted file (#14136)

*minikube ssh* logs into the cluster as user 'docker'. The user 'docker' (uid=1000) does not have write permissions in /mnt to create a new directory and/or the example's HTML file. Use sudo(8) to create the directory as well as the HTML file nginx will ultimately serve.
pull/14198/head
Alexander Sack 2019-05-07 00:51:38 -04:00 committed by Kubernetes Prow Robot
parent 2458d36751
commit 3ffdf634c0
1 changed files with 2 additions and 2 deletions

View File

@ -41,11 +41,11 @@ shell to your Node by entering `minikube ssh`.
In your shell, create a `/mnt/data` directory:
mkdir /mnt/data
sudo mkdir /mnt/data
In the `/mnt/data` directory, create an `index.html` file:
echo 'Hello from Kubernetes storage' > /mnt/data/index.html
sudo sh -c "echo 'Hello from Kubernetes storage' > /mnt/data/index.html"
## Create a PersistentVolume