Docker 记录 ------ linux换源
1.ubuntu换阿里云镜像:https://developer.aliyun.com/mirror/
vi /etc/apt/sources.list
把里面的注释掉,在后面添加,适用ubuntu20.04
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse # deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
适用ubuntu22.04的清华源
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse # 预发布软件源,不建议启用 # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
cat /etc/issue 查看当前正在运行的 Ubuntu 的版本号
2.下载weave文件:
cd /usr/local/bin
mget https://raw.githubusercontent.com/zettio/weave/master/weave
修改host:sudo vi /etc/hosts
添加151.101.64.133 raw.githubusercontent.com
3. 使VMware创建的虚拟机ubuntu与本机Windows处于同一网段下:
参考:https://blog.csdn.net/Mr_XiMu/article/details/102829789
要选择实际使用的网卡
docker离线安装:
Ubuntu 20.04离线安装Docker 社区版 - 知乎 (zhihu.com)
ubuntu安装:
Ubuntu20.04安装详细图文教程(双系统)_Hacah的博客-CSDN博客_ubuntu20.04安装教程
docker-compose离线安装:
docker-compose离线安装_方方园园的博客-CSDN博客_docker-compose离线安装
docker-compose.yml
version: '3' services: dds: image: dds:latest network_mode: host #container_name: dds_1 command: /bin/bash -c "cd /home/dds/Debug&&./test_Recv"
人生不如意的时候,是上帝给的长假,这个时候应该好好享受假期。
突然有一天假期结束,时来运转,人生才是真正开始了。
突然有一天假期结束,时来运转,人生才是真正开始了。