雪影风清

雪地见影,风中见清

0%

Docker学习记录

1. 安装Docker,略

2. 启动Docker:

1
sudo systemctl start docker

3. 拉取镜像

1
2
3
4
5
# 查看已有镜像
docker images
# 拉取镜像
docker search centos
docker pull centos

4. 安装依赖以及下载Python3.7

1
2
3
4
5
6
7
8
9
10
11
yum install openssl-devel bzip2-devel libffi-devel

# 下载源码包
wget -c https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
# 解压
xz -d Python-3.7.2.tar.xz
tar xvf Python-3.7.2.tar
cd Python-3.7.2
# 这里加上with-ssl 否则pip3无法使用
./configure --prefix=/usr/local --with-ssl
make -j && make install