CentOS Linux release 7.6.1810 (Core) & Linux version 4.9.125-linuxkit
903
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum install -y wget
yum install -y vim
yum install -y gcc
yum install -y make
yum install -y gdb
yum install -y passwd
yum install -y net-tools
root:root
work:work
rz
sz
yum install openssh-server -y
echo "alias cp='cp -i'" >> /etc/bashrc
echo "alias egrep='egrep --color=auto'" >> /etc/bashrc
echo "alias fgrep='fgrep --color=auto'" >> /etc/bashrc
echo "alias grep='grep --color=auto'" >> /etc/bashrc
echo "alias l.='ls -d .* --color=auto'" >> /etc/bashrc
echo "alias la='ls -la --color=auto'" >> /etc/bashrc
echo "alias lh='ls -lah --color=auto'" >> /etc/bashrc
echo "alias ls='ls --color=auto'" >> /etc/bashrc
echo "alias mv='mv -i'" >> /etc/bashrc
echo "alias rm='rm -i'" >> /etc/bashrc
echo "alias vi='vim'" >> /etc/bashrc
echo "alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'" >> /etc/bashrc
echo "alias datetime='date +\"%Y-%m-%d %H:%M:%S\"'" >> /etc/bashrc
echo "alias ll='ls --time-style \"+%Y-%m-%d %H:%M:%S\" -lht --color=auto'" >> /etc/bashrc
docker run -d --name centos-test wngn123/centos:latest -p 41022:22 /bin/bash
Content type
Image
Digest
Size
166.6 MB
Last updated
over 7 years ago
docker pull wngn123/centos