Once a container has been loaded (or pulled) you can tag it to make
it more useful to your project. A tag is very similar to a
repository tag when working with a version control system. You'll
want a useful tag name to be able to manage your containers easily
later.
Run 'docker images'
Notice the container id listed. We'll need that to tag the
container.
Run 'docker tag <image id> <your tag name>'
Verify your tag by running 'docker images' again. It will now appear with the tag you provided.
A single docker container image can be used by many running
containers. This is done by making use of the –name <desired
running name> flag during a 'docker run'. We'll go over this in detail later.
Next: Bind Mounting Persistent Storage & Ports
Next: Bind Mounting Persistent Storage & Ports
No comments:
Post a Comment