sh Rancher OS命令用于整个SD

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Rancher OS命令用于整个SD相关的知识,希望对你有一定的参考价值。

# Applies to Raspberry Pi 3 implementation of Rancher OS (which is obviously on an SD Card)
# Generally VM Rancher is easier to manage and more powerful but my use case revolves around crowding my server with other
# VMs while still needing to play with the RancherOS feature set
sudo fdisk /dev/mmcblk0 
# n 4 times and w to write
# comment out the above line, reboot & rerun
sudo mkdir /mnt/docker 
sudo ros config set rancher.docker.extra_args [-g,/mnt/docker]
sudo mkfs.ext4 /dev/mmcblk0p3
sudo ros config set mounts "[['/dev/mmcblk0p3','/mnt/docker','ext4',']]"
sudo mount /dev/mmcblk0p3 /mnt/docker
sudo system-docker restart docker



以上是关于sh Rancher OS命令用于整个SD的主要内容,如果未能解决你的问题,请参考以下文章

rancher os的安装部署

sh 用于在OS X命令行上全局链接sublime文本的Shell脚本

sh 翻译:“OS X 10.10 Yosemite本地开发环境,Apache,PHP和MySQL与Homebrew”8。继续配置`httpd-vhosts.conf`,以为为一条终端命令,复制整个区

使用 Rancher OS 运行 docker-compose

如何将 kubectl 命令用于在 Rancher 中使用 docker 运行的 kubernetes?

sh rancher-deploy.sh