2.docker下centos镜像

1.下载并运行

# 交互模式下载并运行centos容器
$ docker run -it centos:latest /bin/bash

1.1 配置centos的环境别名

$ vi /etc/bashrc

# 在bashrc最后一行中添加代码如下
alias ll = 'ls -al'
# 保存即可

# 环境生效
$ source /etc/bashrc

1.2 安装环境插件

vim

$ yum install -y vim 

wget

$ yum install -y wget

hg

$ wget http://mercurial.selenic.com/release/mercurial-2.6.1.tar.g
posted @ 2021-06-19 16:30  可可逗豆  阅读(192)  评论(0)    收藏  举报