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

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.

主站蜘蛛池模板: 澄江县| 鄯善县| 容城县| 上思县| 平度市| 许昌县| 莱芜市| 山西省| 松阳县| 滦平县| 昌吉市| 安宁市| 安化县| 崇明县| 湖南省| 兴国县| 奉贤区| 那曲县| 施甸县| 北京市| 淳安县| 日喀则市| 启东市| 田林县| 孟连| 安阳县| 临夏县| 仁化县| 大理市| 巩留县| 武汉市| 油尖旺区| 阳谷县| 石楼县| 秭归县| 咸丰县| 黄平县| 石首市| 清流县| 贵港市| 徐闻县|