8000 GitHub - Lirous587/docker-centos-script: 在docker上创建centos系统的基于golang编写的脚本
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Lirous587/docker-centos-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基于 dockercentos 环境快速搭建

由于centos对用户名的要求 name必须包含英文,不得为纯数字

  • 构建并启动centos
./init.exe new_username new_password
#./init.exe lijingwoquan 123456
  • 关闭终端后再次进入容器
docker run -it centos7-yourname:latest
# docker run -it centos7-lijingwoquan:latest  
  • 若要以管理员的身份运行
docker run -it -u root centos7-yourname:latest
# docker run -it -u root centos7-lijingwoquan:latest  
  • 重启容器
docker restart -it centos7-yourname:latest

About

在docker上创建centos系统的基于golang编写的脚本

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0