#基于上述容器重新创建镜像,创建的镜像为 hanslife/hyperf:centos7-hyperf3.0-php8.1.16-swoole5.0.2
#镜像的完整名称是 用户名称/仓库名称:TAG
docker commit 24469f0da9f8 hanslife/hyperf:centos7-hyperf3.0-php8.1.16-swoole5.0.2
#登录账号
docker login #使用用户名hanslife登录,不是邮箱
#上传
docker push hanslife/hyperf:centos7-hyperf3.0-php8.1.16-swoole5.0.2
#还可以对镜像进行重命名
docker tag hanslife/hyperf:centos7-hyperf3.0-php8.1.16-swoole5.0.2 hanslife/hyperf:centos72-hyperf3.0-php8.1-swoole5.0