构建基础docker镜像

2018年8月27日 0 条评论 955 次阅读 0 人点赞

docker run ubuntu

apt-get update
apt-get install openssh-server net-tools supervisor lrzsz htop iftop -y

//编辑sshd启动

vim /etc/supervisor/supervisor.conf

//显示中文:
apt-get install language-pack-zh-hant language-pack-zh-hans
dpkg-reconfigure locales
echo "export LANGUAGE=\"zh_CN.UTF-8\"" >> ~/.bashrc
echo "export LC_ALL=\"zh_CN.UTF-8\"" >> ~/.bashrc

. ~/.bashrc

//Nodejs

vim /etc/profile

#set for nodejs

export NODE_HOME=/root/node-v8.12.0-linux-x64

export PATH=$NODE_HOME/bin:$PATH

source /etc/profile

管理员

这个人太懒什么东西都没留下