Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Example module ssh-015-ssh-install-minikube fails with: Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory #370

Closed
athrane opened this issue Mar 31, 2019 · 3 comments
Labels
Milestone

Comments

@athrane
Copy link
Owner

athrane commented Mar 31, 2019

Use versions:

Centos: 7.6
<mmd:variable key="kubectl-version" value="1.14.0" />
<mmd:variable key="minikube-version" value="1.0.0" />
Docker:

docker version
Client:
 Version:           18.09.4
 API version:       1.39
 Go version:        go1.10.8
 Git commit:        d14af54266
 Built:             Wed Mar 27 18:34:51 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Pineapple output:

Error Out:
--
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
2019/03/31 13:16:24 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 13:16:24 No matching credentials were found, falling back on anonymous
! Error starting cluster: kubeadm init:
sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI
: running command:
sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI
output: [init] Using Kubernetes version: v1.14.0
[preflight] Running pre-flight checks
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[WARNING Hostname]: hostname "minikube" could not be reached
[WARNING Hostname]: hostname "minikube": lookup minikube on 10.0.2.3:53: no such host
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
: running command:
sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI
.: exit status 1
* Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
- https://github.com/kubernetes/minikube/issues/new


@athrane athrane added this to the 1.12.0 milestone Mar 31, 2019
@athrane athrane changed the title Example module ssh-015-ssh-install-minikube fails with: Example module ssh-015-ssh-install-minikube fails with: Unable to read "/root/.docker/config.json Mar 31, 2019
@athrane athrane changed the title Example module ssh-015-ssh-install-minikube fails with: Unable to read "/root/.docker/config.json Example module ssh-015-ssh-install-minikube fails with: Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory Mar 31, 2019
@athrane
Copy link
Owner Author

athrane commented Mar 31, 2019

Installation using the directives at:
https://github.com/kubernetes/minikube/blob/master/docs/vmdriver-none.md
succeeds only with an warning:

[vagrant@localhost ~]$ curl -Lo minikube \
>   https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
>   && sudo install minikube /usr/local/bin/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 38.2M  100 38.2M    0     0  3039k      0  0:00:12  0:00:12 --:--:-- 2898k
[vagrant@localhost ~]$ kv=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
[vagrant@localhost ~]$ curl -Lo kubectl \
>   https://storage.googleapis.com/kubernetes-release/release/$kv/bin/linux/amd64/kubectl \
>   && sudo install kubectl /usr/local/bin/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 41.1M  100 41.1M    0     0  2705k      0  0:00:15  0:00:15 --:--:-- 2658k
[vagrant@localhost ~]$ export MINIKUBE_WANTUPDATENOTIFICATION=false
[vagrant@localhost ~]$ export MINIKUBE_WANTREPORTERRORPROMPT=false
[vagrant@localhost ~]$ export MINIKUBE_HOME=$HOME
[vagrant@localhost ~]$ export CHANGE_MINIKUBE_NONE_USER=true
[vagrant@localhost ~]$ export KUBECONFIG=$HOME/.kube/config
[vagrant@localhost ~]$ mkdir -p $HOME/.kube $HOME/.minikube
[vagrant@localhost ~]$ touch $KUBECONFIG
[vagrant@localhost ~]$ sudo -E minikube start --vm-driver=none
sudo: minikube: command not found
[vagrant@localhost ~]$ sudo -E /usr/local/bin/minikube start --vm-driver=none
o   minikube v1.0.0 on linux (amd64)
$   Downloading Kubernetes v1.14.0 images in the background ...
>   Creating none VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
2019/03/31 19:10:53 Unable to read "/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
2019/03/31 19:10:53 No matching credentials were found, falling back on anonymous
-   "minikube" IP address is 10.0.2.15
-   Configuring Docker as the container runtime ...
-   Version of container runtime is 18.09.4
:   Waiting for image downloads to complete ...
-   Preparing Kubernetes environment ...
@   Downloading kubelet v1.14.0
@   Downloading kubeadm v1.14.0
-   Pulling images required by Kubernetes v1.14.0 ...
-   Launching Kubernetes v1.14.0 using kubeadm ...
:   Waiting for pods: apiserver proxy etcd scheduler controller dns
-   Configuring cluster permissions ...
-   Verifying component health .....
>   Configuring local host environment ...

!   The 'none' driver provides limited isolation and may reduce system security and reliability.
!   For more information, see:
-   https://github.com/kubernetes/minikube/blob/master/docs/vmdriver-none.md

+   kubectl is now configured to use "minikube"
i   For best results, install kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl/
=   Done! Thank you for using minikube!

@athrane
Copy link
Owner Author

athrane commented Apr 1, 2019

Opened issue in minikube to get some help: kubernetes/minikube#4028
See kubernetes/minikube#4007

@athrane
Copy link
Owner Author

athrane commented Apr 6, 2019

Not able to reproduce consistently. Closed for now.

@athrane athrane closed this as completed Apr 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant