From 3ffdf634c04581e0360954baaaeedffc67fb4fc4 Mon Sep 17 00:00:00 2001 From: Alexander Sack Date: Tue, 7 May 2019 00:51:38 -0400 Subject: [PATCH] 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. --- .../configure-persistent-volume-storage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md b/content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md index d51327390a..9f883718d2 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md +++ b/content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md @@ -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