ubuntu 20.04安装docker+宝塔+smb挂载群晖文件到mnt目录

2021-11-07 15:47:02 2点赞 1收藏 0评论

听说centos8今年底停止维护 centos7 2024年停止维护,因此尝试安装ubuntu,并且安装docker,宝塔,

smb挂载群晖目录到ubuntu目录,后续用宝塔建站的时候,默写应用会用到。嘻嘻。

## 安装环境ubuntu 20.04

### 安装docker

### 卸载旧版

### 支持的ubuntu版本

Ubuntu Impish 21.10

Ubuntu Hirsute 21.04

Ubuntu Focal 20.04 (LTS)

Ubuntu Bionic 18.04 (LTS)

卸载旧版docker命令

sudo apt-get remove docker docker-engine docker.io containerd runc

安装

Update the apt package index and install packages to allow apt to use a repository over HTTPS:

sudo apt-get update

sudo apt-get install
ca-certificates
curl
gnupg
lsb-release

Add Docker’s official GPG key:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Use the following command to set up the stable repository. To add the nightly or test repository, add the word nightly or test (or both) after the word stable in the commands below. Learn about nightly and test channels.

echo
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Install Docker Engine

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

测试

sudo docker run hello-world

来自docker官方文档点我跳转

安装宝塔官方7.7

试验性Centos/Ubuntu/Debian安装命令 独立运行环境(py3.7) 可能存在少量兼容性问题 不断优化中

curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh

Ubuntu/Deepin安装命令

wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh

smb挂载群晖文件到mnt目录

临时挂载

mount -t cifs //192.168.1.100/LSZ/ /mnt -o vers=2.0,username=admin,password=87814721

开机自动挂载

修改权限

cd /etc
sudo chmod 666 fstab
sudo pluma fstab

编辑fstab文件

添加代码//192.168.1.100/LSZ/ /mnt cifs defaults,username=admin,password=87814721,iocharset=utf8,vers=1.0

即//远程地址/远程目录/ /本地目录 cifs defaults,username=用户名,password=密码,iocharset=utf8,vers=1.0

ubuntu 20.04安装docker+宝塔+smb挂载群晖文件到mnt目录

重启以后,可以看到开机自动挂载成功

ubuntu 20.04安装docker+宝塔+smb挂载群晖文件到mnt目录



总结

(这里你可以分几点来说说商品的优点、缺点,这样能够更快速明了地帮助到值友们)


展开 收起

WPS 金山软件 WPS 超级会员 3年卡

WPS 金山软件 WPS 超级会员 3年卡

264.1元起

WPS 金山软件 超级会员15个月卡+哔哩哔哩大会员年卡

WPS 金山软件 超级会员15个月卡+哔哩哔哩大会员年卡

暂无报价

ihuman 洪恩 识字子集拼音思维ABC会员永久包3-6岁儿童早教启蒙礼物玩具 识字会员终身包

ihuman 洪恩 识字子集拼音思维ABC会员永久包3-6岁儿童早教启蒙礼物玩具 识字会员终身包

268元起

Microsoft 微软 OFFICE 365 家庭版 会员

Microsoft 微软 OFFICE 365 家庭版 会员

105元起

Microsoft 微软 Office 365 个人版

Microsoft 微软 Office 365 个人版

177元起

Microsoft 微软 365家庭版一年

Microsoft 微软 365家庭版一年

235元起

WPS 金山软件 超级会员2年卡 赠AI会员

WPS 金山软件 超级会员2年卡 赠AI会员

187.15元起

统信 UOS桌面操作系统V20/适用于国产型号/官方正版授权/国产专用

统信 UOS桌面操作系统V20/适用于国产型号/官方正版授权/国产专用

598元起

Microsoft 微软 OFFICE 365 个人版 办公软件

Microsoft 微软 OFFICE 365 个人版 办公软件

208元起

WPS 金山软件 会员季卡

WPS 金山软件 会员季卡

37.05元起

WPS超级会员Pro套餐4年卡1488天官方正版pdf转word排版

WPS超级会员Pro套餐4年卡1488天官方正版pdf转word排版

暂无报价

超级会员年卡+芒果TV年卡

超级会员年卡+芒果TV年卡

158元起

365office365OfficePLUS Microsoft365 12 -

365office365OfficePLUS Microsoft365 12 -

235元起

WPS 金山软件 AI会员1年 金山办公软件官方正版

WPS 金山软件 AI会员1年 金山办公软件官方正版

188元起

WPS 金山软件 超级会员季卡

WPS 金山软件 超级会员季卡

39元起

国行版 Switch体感游戏套装 《健身环大冒险》

国行版 Switch体感游戏套装 《健身环大冒险》

379元起
0评论

当前文章无评论,是时候发表评论了
提示信息

取消
确认
评论举报

相关好价推荐
查看更多好价

相关文章推荐

更多精彩文章
更多精彩文章
天猫超级红包
距结束::
每天领现金,最高24888元
红包按钮
最新文章 热门文章
目录
1
扫一下,分享更方便,购买更轻松