假设一个官方docker基础图像ubuntu:latest,我有一个dockerhub帐户myaccount。如何克隆ubuntu:latest到myaccount的存储库?然后可以将工作流程介绍如下,
$ docker pull myaccount/ubuntu:latest
$ docker run -it myaccount/ubuntu:latest /bin/bash
# root@mycontainer: apt-get install onepackage
# root@mycontainer: exit
$ docker commit mycontainer myaccount/ubuntu:latest-new
$ docker push myaccount/ubuntu:latest-new
我push只需要 delta latest-newminus latest。