权限 usermod -a -G docker $USER 提交 docker commit -a "weiofcn@gmail.com" -m "first commit" 34dc47734372 weiofcn/ubuntu16.04-add-xxx 上库 docker login --username username --password password docker tag my-image username/my-repoc docker push username/my-repo