Launching RancherOS using Docker Machine
Before moving forward, you’ll need to have Docker Machine and VirtualBox installed. Once you have VirtualBox and Docker Machine installed, it’s just one command to get RancherOS running.
1 | docker-machine create -d virtualbox \ |
That’s it! You’re up and running a RancherOS instance.
To log into the instance, just use the docker-machine command.
ssh 登录
1 | docker-machine ssh <MACHINE-NAME> |
切换docker镜像
1 | sudo ros c set rancher.bootstrap_docker.registry_mirror https://registry.docker-cn.com |
重启已加载配置
1 | sudo reboot |
切换为Ubuntu
1 | sudo ros console switch ubuntu |
替换源
1 | deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse |