Does tagging a Docker image create a copy of the image? The Next CEO of Stack Overflowinconsistent Docker imageDocker image creation using RPMDelivering docker image to multiple servers without docker machineExtract file from docker image?Running Docker in Docker: Access volumes from the parent DockerUnusual disk space usageEvery docker image I make cannot bind to any portDownloaded newer image - docker: Error response from daemon: OCI runtime create failed: container_linux.go:348:How to prevent docker Image from upgrading the yum packagedocker unable to run golang image
Find a path from s to t using as few red nodes as possible
Upgrading From a 9 Speed Sora Derailleur?
Are British MPs missing the point, with these 'Indicative Votes'?
Calculating discount not working
"Eavesdropping" vs "Listen in on"
MT "will strike" & LXX "will watch carefully" (Gen 3:15)?
Can Sri Krishna be called 'a person'?
How do I secure a TV wall mount?
How to unfasten electrical subpanel attached with ramset
Is it possible to create a QR code using text?
What does this strange code stamp on my passport mean?
How does a dynamic QR code work?
Find the majority element, which appears more than half the time
How can a day be of 24 hours?
The sum of any ten consecutive numbers from a fibonacci sequence is divisible by 11
Shortening a title without changing its meaning
My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?
Why doesn't Shulchan Aruch include the laws of destroying fruit trees?
Physiological effects of huge anime eyes
How do I keep Mac Emacs from trapping M-`?
Can I cast Thunderwave and be at the center of its bottom face, but not be affected by it?
Calculate the Mean mean of two numbers
How exploitable/balanced is this homebrew spell: Spell Permanency?
Gauss' Posthumous Publications?
Does tagging a Docker image create a copy of the image?
The Next CEO of Stack Overflowinconsistent Docker imageDocker image creation using RPMDelivering docker image to multiple servers without docker machineExtract file from docker image?Running Docker in Docker: Access volumes from the parent DockerUnusual disk space usageEvery docker image I make cannot bind to any portDownloaded newer image - docker: Error response from daemon: OCI runtime create failed: container_linux.go:348:How to prevent docker Image from upgrading the yum packagedocker unable to run golang image
Does tagging a Docker image create a copy of the image?
It seems to me tagging by itself shouldn't.
But the following command seems to imply so.
Thanks.
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
friendlyhello latest d9e555c53008 3 minutes ago 195MB
python 2.7-slim 1c7128a655f6 5 days ago 183MB
$ docker tag friendlyhello gordon/get-started:part2
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
friendlyhello latest d9e555c53008 3 minutes ago 195MB
gordon/get-started part2 d9e555c53008 3 minutes ago 195MB
python 2.7-slim 1c7128a655f6 5 days ago 183MB
docker
add a comment |
Does tagging a Docker image create a copy of the image?
It seems to me tagging by itself shouldn't.
But the following command seems to imply so.
Thanks.
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
friendlyhello latest d9e555c53008 3 minutes ago 195MB
python 2.7-slim 1c7128a655f6 5 days ago 183MB
$ docker tag friendlyhello gordon/get-started:part2
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
friendlyhello latest d9e555c53008 3 minutes ago 195MB
gordon/get-started part2 d9e555c53008 3 minutes ago 195MB
python 2.7-slim 1c7128a655f6 5 days ago 183MB
docker
add a comment |
Does tagging a Docker image create a copy of the image?
It seems to me tagging by itself shouldn't.
But the following command seems to imply so.
Thanks.
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
friendlyhello latest d9e555c53008 3 minutes ago 195MB
python 2.7-slim 1c7128a655f6 5 days ago 183MB
$ docker tag friendlyhello gordon/get-started:part2
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
friendlyhello latest d9e555c53008 3 minutes ago 195MB
gordon/get-started part2 d9e555c53008 3 minutes ago 195MB
python 2.7-slim 1c7128a655f6 5 days ago 183MB
docker
Does tagging a Docker image create a copy of the image?
It seems to me tagging by itself shouldn't.
But the following command seems to imply so.
Thanks.
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
friendlyhello latest d9e555c53008 3 minutes ago 195MB
python 2.7-slim 1c7128a655f6 5 days ago 183MB
$ docker tag friendlyhello gordon/get-started:part2
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
friendlyhello latest d9e555c53008 3 minutes ago 195MB
gordon/get-started part2 d9e555c53008 3 minutes ago 195MB
python 2.7-slim 1c7128a655f6 5 days ago 183MB
docker
docker
edited 2 days ago
Stephen Kitt
179k24406485
179k24406485
asked 2 days ago
TimTim
28.4k78269490
28.4k78269490
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
No, a copy is not made.
You can tell this because the Image ID value is identical:
friendlyhello latest d9e555c53008 3 minutes ago 195MB
gordon/get-started part2 d9e555c53008 3 minutes ago 195MB
This means they reference the same data. If you then do a docker rmi friendlyhello
then it won't delete anything, just remove the tag.
add a comment |
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509604%2fdoes-tagging-a-docker-image-create-a-copy-of-the-image%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
No, a copy is not made.
You can tell this because the Image ID value is identical:
friendlyhello latest d9e555c53008 3 minutes ago 195MB
gordon/get-started part2 d9e555c53008 3 minutes ago 195MB
This means they reference the same data. If you then do a docker rmi friendlyhello
then it won't delete anything, just remove the tag.
add a comment |
No, a copy is not made.
You can tell this because the Image ID value is identical:
friendlyhello latest d9e555c53008 3 minutes ago 195MB
gordon/get-started part2 d9e555c53008 3 minutes ago 195MB
This means they reference the same data. If you then do a docker rmi friendlyhello
then it won't delete anything, just remove the tag.
add a comment |
No, a copy is not made.
You can tell this because the Image ID value is identical:
friendlyhello latest d9e555c53008 3 minutes ago 195MB
gordon/get-started part2 d9e555c53008 3 minutes ago 195MB
This means they reference the same data. If you then do a docker rmi friendlyhello
then it won't delete anything, just remove the tag.
No, a copy is not made.
You can tell this because the Image ID value is identical:
friendlyhello latest d9e555c53008 3 minutes ago 195MB
gordon/get-started part2 d9e555c53008 3 minutes ago 195MB
This means they reference the same data. If you then do a docker rmi friendlyhello
then it won't delete anything, just remove the tag.
answered 2 days ago
Stephen HarrisStephen Harris
27.2k35283
27.2k35283
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509604%2fdoes-tagging-a-docker-image-create-a-copy-of-the-image%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown