Open yhw-miracle opened 3 years ago
1. sudo usermod -aG docker 用户名 2. sudo chmod a+rw /var/run/docker.sock 3. sudo service docker restart 4. docker pull ubuntu:16.04 5. docker run --name=ubuntu16.04_yhw-miracle_init -it ubuntu:16.04 /bin/bash 6. apt-get update 7. apt-get install vim 8. cd /etc/apt 9. cp sources.list sources.list.copy 10. vim sources.list >>> :%s/archive.ubuntu/mirrors.aliyun/g >>> :%s/security.ubuntu/mirrors.aliyun/g 11. apt-get update 12. apt-get install net-tools wget git zsh -y 13. sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 14. ssh-keygen -t rsa -C 'yhw_software@qq.com' 15. mkdir /data && cd /data 16. git clone git@github.com:powerline/fonts.git 17. cd fonts 18. chmod +x install.sh 19. ./install.sh 20. docket commit {CONTAINER} {REPOSITORY} 21. docker push