Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 19

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 20

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 21

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 22

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 23
Docker和Docker-compose安装 - Hello World

Docker和Docker-compose安装

清歌
2023-11-05 / 0 评论 / 0 阅读 / 正在检测是否收录...

安装 Docker、Docker-compose

更新、安装必备软件

apt-get update && apt-get install -y 

Docker安装

Docker安装

wget -qO- get.docker.com | bash   

设置开机自动启动

systemctl enable docker

查看docker版本

docker -v  

Docker-compose安装

Docker-compose安装

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

授予权限

sudo chmod +x /usr/local/bin/docker-compose   

查看docker-compose版本

docker-compose --version 

卸载 Docker

sudo apt-get purge docker-ce docker-ce-cli containerd.io
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd

重启Docker

systemctl restart docker
0

评论 (0)

取消