Skip to content

none: sudo systemctl restart docker: exit status 127 (systemd is required) #3748

Closed
@tianyirenjian

Description

@tianyirenjian

How to replicate the error, including the exact command-lines used:

I download it with

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube
cp minikube /usr/local/bin && rm minikube

then start it :

minikube start --vm-driver=none

The full output of the command that failed

root@vultr:~# minikube start --vm-driver=none
o   minikube v0.34.1 on linux (amd64)
>   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 and minikube configuration will be stored in /root
!   To use kubectl or minikube commands as your own user, you may
!   need to relocate them. For example, to overwrite your own settings:

    - sudo mv /root/.kube /root/.minikube $HOME
    - sudo chown -R $USER /root/.kube /root/.minikube

i   This can also be done automatically by setting the env var CHANGE_MINIKUBE_NONE_USER=true
i   Tip: Use 'minikube start -p <name>' to create a new cluster, or 'minikube delete' to delete this one.
:   Restarting existing none VM for "minikube" ...
:   Waiting for SSH access ...
-   "minikube" IP address is 139.180.143.41
-   Configuring Docker as the container runtime ...
!   Failed to enable container runtime: running command: sudo systemctl restart docker: exit status 127

*   Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
-   https://github.com/kubernetes/minikube/issues/new

It seems can't restart docker. I restart docker by /etc/init.d/docker restart not systemctl restart docker.

The operating system name and version used

root@vultr:~# uname -a
Linux vultr.guest 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions