记录安装linux系统之后的所有配置过程。
修改软件源
https://mirror.zju.edu.cn/
1 2 3
| cd /etc/apt sudo cp sources.list sources.list.bak sudo vi sources.list
|
删掉所有的,换成
1 2 3 4 5 6 7 8 9 10 11 12
| deb https://mirrors.zju.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.zju.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.zju.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.zju.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
|
1 2
| sudo apt update sudo apt upgrade
|
安装软件
docker
1 2 3 4
| sudo apt install curl curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun sudo apt-get install -y uidmap dockerd-rootless-setuptool.sh install
|
添加.bashrc
1 2
| export PATH=/usr/bin:$PATH export DOCKER_HOST=unix:///run/user/1000/docker.sock
|
测试
1 2
| source .bashrc docker run hello-world
|