在debian9 9中安裝docker的心裡路程

2021-09-25 02:14:53 字數 759 閱讀 6309

安裝docker,很快很方便。最初安裝ubuntu裡的方法去搞,發現不行。沒有安裝成功,

sudo apt-get update
在ubuntu中是docker.io

sudo apt-get install docker-ce
sudo apt-get install docker-engine
lsb_release -cs   # 查詢版本號 debian分支
deb [arch=amd64]  stretch stable
sudo apt-get remove docker docker-engine docker.io
使用了

#!/bin/bash

cat >/etc/apt/sources.list <>/etc/apt/sources.list

apt update

apt install -y docker-ce

systemctl start docker

systemctl enable docker

就這樣,兜了好大圈才把docker安裝好。在以後的使用中是順利的。

關於防火牆,debian,即使沒有開通防火牆,但iptables是一定有的。而且這個規則是有軟體環境生產的。系統重啟後,就重新生成。不會自動保持配置。

在centos和redhat上安裝docker

前置條件 64 bit 系統 kernel 3.10 1.檢查核心版本,返回的值大於3.10即可。uname r 2.使用 sudo 或 root 許可權的使用者登入終端。3.確保yum是最新的 yum update 4.新增 yum 倉庫 tee etc yum.repos.d docker.re...

在Debian中配置網路

1.配置ip和dns 修改 etc network inte ces檔案 auto lo iface lo inet loopback description static ip auto eth0 iface eth0 inet static address 192.168.1.119 netma...

在Debian下安裝Nvidia驅動

在debian下安裝nvidia驅動 我的系統情況如下 debian etch testing,gfore mx 400,xorg,核心是自己編譯的2.6.20。另外要提醒大家就是nvidia的驅動已不再支援某些為卡,首先我們要確定我們的顯示卡是還被支援,如果不是這樣,我們就要安裝leacy的驅動。...