官术网_书友最值得收藏!

Virtual machine access and logs

You are able to SSH into the Minikube virtual machine. As part of the installation, an SSH key was generated and shared with the virtual machine when it launched. You can check the location of this key by running minikube ssh-key. This returns the path of the private part of the key. You can use this in combination with other commands to SSH into your virtual machine by running the following on macOS or Ubuntu:

$ ssh docker@$(minikube ip) -i $(minikube ssh-key)

This generates the IP address of the virtual machine and path to the private key on-the-fly:

However, Minikube also has a command that will run this for you and it is also supported on all platforms. Running minikube ssh will log you straight in to the virtual machine as the Docker user, as is shown by the following Terminal output:

The final command we are going to quickly look at is minikube logs. This displays all of the logs being generated by the localkube instance:

These logs are used to help debug problems with your Minikube installation. They do not contain any user data, meaning that you cannot use them to help track down any problems with the services or pods you have launched.

主站蜘蛛池模板: 马公市| 海兴县| 肃北| 加查县| 宜兰市| 建瓯市| 黄骅市| 太原市| 仙游县| 潍坊市| 林甸县| 苏尼特右旗| 高青县| 清水河县| 蒙阴县| 开封县| 图们市| 高密市| 东乡| 龙门县| 松溪县| 宁津县| 安塞县| 湖南省| 广南县| 富锦市| 沙雅县| 福清市| 彭山县| 丰台区| 永福县| 安吉县| 新田县| 湟源县| 清水河县| 大连市| 东乡族自治县| 镇平县| 邵阳县| 贞丰县| 会理县|