Hi,

I have a problem regarding OpenShift Origin 3.9 running on Docker for
Windows locally:

When I try to run oc cluster up --host-data-dir=/ocdata in order to persist
my data on the Hyper-V Docker (following
https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md),
the data is not persisted correctly (no error messages) and I have to
create everything from the beginning which is pretty annoying.

However, when I share my local Drives with the Docker Hyper-V Machine like
in this photo:




-> and start the OpenShift cluster with the command oc cluster up
--host-data-dir=D:/ocdata, I get the following error:

λ oc cluster up --host-data-dir=D:/ocdata
Deleted existing OpenShift container
Using Docker shared volumes for OpenShift volumes
Using 10.0.75.2 as the server IP
Starting OpenShift using openshift/origin:v3.9.0 ...
-- Starting OpenShift container ...
   Creating initial OpenShift configuration
   Starting OpenShift using container 'origin'
FAIL
   Error: could not start OpenShift container "origin"
   Details:
     Last 10 lines of "origin" container log:
     2018-05-09 15:15:22.869737 I | etcdserver: name = openshift.local
     2018-05-09 15:15:22.869759 I | etcdserver: data dir =
/var/lib/origin/openshift.local.etcd
     2018-05-09 15:15:22.869765 I | etcdserver: member dir =
/var/lib/origin/openshift.local.etcd/member
     2018-05-09 15:15:22.869768 I | etcdserver: heartbeat = 100ms
     2018-05-09 15:15:22.869771 I | etcdserver: election = 1000ms
     2018-05-09 15:15:22.869774 I | etcdserver: snapshot count = 100000
     2018-05-09 15:15:22.869783 I | etcdserver: advertise client URLs =
https://127.0.0.1:4001
     2018-05-09 15:15:22.869793 I | etcdserver: initial advertise peer URLs
= https://127.0.0.1:7001
     2018-05-09 15:15:22.869806 I | etcdserver: initial cluster =
openshift.local=https://127.0.0.1:7001
     2018-05-09 15:15:22.883377 C | etcdserver: create wal error: rename
/var/lib/origin/openshift.local.etcd/member/wal.tmp
/var/lib/origin/openshift.local.etcd/member/wal: permission denied


Please, could you tell me how to fix this in order start OpenShift Origin
on my local computer with the option  --host-data-dir on? Before this, I
was running Docker for Mac and everything worked fine but when I'm using
Docker for Windows on my Windows 10 computer, I'm getting some problems.

Regards,
Tien
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to