How to commit docker images


[cloud_user@aryan1c ~]$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

To commit docker image, you need to copy the identification number
65d264fc1d7e centos:6 “/bin/bash” 39 minutes ago Exited (0) About a minute ago quirky_nightingale
5fdeaceec288 spacebones/doge “nginx -g ‘daemon …” 2 hours ago Up 2 hours 0.0.0.0:80->80/tcp treatseekers
[cloud_user@aryan1c ~]$ docker commit 65d264fc1d7e spacebones:thewebsite
sha256:d764a58ff47b2db18aec6aa2928b404998130cdba8edcaa6af78ea5f744b651f
[cloud_user@aryan1c ~]$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
spacebones thewebsite d764a58ff47b 4 seconds ago 511 MB

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.