Files
oneclickvirt.github.io/docs/guide/docker_install.md
2023-08-14 22:32:56 +08:00

1.3 KiB
Raw Blame History

outline
outline
deep

前言

支持开设 Docker 虚拟化的各系统,含 Linux、Android、Windows 系统

环境预设

  • 检测环境
  • 安装docker和其他预制组件
  • 下载默认需要的一些配置脚本

国际

curl -L https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/dockerinstall.sh -o dockerinstall.sh && chmod +x dockerinstall.sh && bash dockerinstall.sh

国内

curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/dockerinstall.sh -o dockerinstall.sh && chmod +x dockerinstall.sh && bash dockerinstall.sh

开设虚拟内存

:::warning 内存开点swap免得机器炸了 :::

单位换算:输入 1024 产生 1G SWAP-虚拟内存虚拟内存占用硬盘空间当实际内存不够用时将自动使用虚拟内存做内存使用但随之带来IO高占用以及CPU性能占用

建议只开实际内存大小两倍大小的虚拟内存

国际

curl -L https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh

国内

curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh