centos8.4 + java11 + anaconda3(2021.05) + mysql8.0.26 + redis6.2.6
$ mkdir -p /opt/developments/
$ cd /opt/developments/anaconda
$ wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2021.05-Linux-x86_64.sh
$ chmod +x Anaconda3-2021.05-Linux-x86_64.sh
$ ./Anaconda3-2021.05-Linux-x86_64.sh
>>> yes
>>> /opt/developments/anaconda
>>> yes
创建自定义网络
$ docker network create --subnet=<子网地址> <网络名称>
例:docker network create --subnet=172.18.0.0/16 x8x_bridge
模板:$ docker run --privileged -d -p <端口映射 1> ... -p <端口映射 n> --restart="always" <用户名>/<repository name>:<tag name> /usr/sbin/init
实例:$ docker run --network x8x_bridge --hostname k8smaster --ip 172.18.0.2 --privileged -d -p 3306:3306 -p 6379:6379 --restart="always" thunderboltlei/centos-compile-beam:202208011608 /usr/sbin/init
模板:$ docker exec -it <container id> /bin/bash
Content type
Image
Digest
sha256:1a4d70607…
Size
2.7 GB
Last updated
over 4 years ago
docker pull thunderboltlei/centos-compile-beam:202208011608