发现错误
[root@localhost ~]# sudo useradd -s /bin/bash -G docker -d /home/fate fate
“创建用户名fate”
useradd: group 'docker' does not exist(此处报错,docker的组不存在)
解决办法
[root@localhost docker-deploy]# bash docker_deploy.sh all --training
Stopping confs-10000_client_1 ... done
Stopping confs-10000_fateboard_1 ... done
Stopping confs-10000_python_1 ... done
Stopping confs-10000_rollsite_1 ... done
Stopping confs-10000_nodemanager_1 ... done
Stopping confs-10000_mysql_1 ... done
Stopping confs-10000_clustermanager_1 ... done
Removing confs-10000_client_1 ... done
Removing confs-10000_fateboard_1 ... done
Removing confs-10000_python_1 ... done
Removing confs-10000_rollsite_1 ... done
Removing confs-10000_nodemanager_1 ... done
Removing confs-10000_mysql_1 ... done
Removing confs-10000_clustermanager_1 ... done
Removing network confs-10000_fate-network
Creating network "confs-10000_fate-network" with the default driver
Creating confs-10000_nodemanager_1 ... done
Creating confs-10000_mysql_1 ... done
Creating confs-10000_rollsite_1 ... done
Creating confs-10000_clustermanager_1 ... done
Creating confs-10000_python_1 ... done
Creating confs-10000_fateboard_1 ... done
Creating confs-10000_client_1 ... done
fate@10.10.44.129's password:#此处报错
Permission denied, please try again.
[root@localhost ~]# cd /etc
“进入到文件etc下”
[root@localhost etc]# ls
“查看etc的内容”
abrt dconf gshadow- mail.rc prelink.conf.d sos.conf
adjtime default gss makedumpfile.conf.sample printcap speech-dispatcher
aliases depmod.d gssproxy man_db.conf profile ssh
aliases.db dhcp host.conf maven profile.d ssl
alsa DIR_COLORS hostname mke2fs.conf protocols sssd
alternatives DIR_COLORS.256color hosts modprobe.d pulse statetab