HUB
Sign inSign up

wngn123/centos

By wngn123

•Updated over 7 years ago

CentOS Linux release 7.6.1810 (Core) & Linux version 4.9.125-linuxkit

Image
0

1.0K

wngn123/centos repository overview

⁠时区 base

 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

⁠安装lrzsz

rz
sz

⁠安装ssh

yum install openssh-server -y

⁠添加别名 base

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
Tag summary
Recent tags
Content type
Image
Digest
Size
166.6 MB
Last updated
over 7 years ago
docker pull wngn123/centos:latest