yum -y update yum install -y bash-completion source /usr/share/bash-completion/completions/docker sh /usr/share/bash-completion/bash_completion reboot 注意: