{"id":137,"date":"2023-09-01T13:52:49","date_gmt":"2023-09-01T11:52:49","guid":{"rendered":"http:\/\/eines-informatiques.recursos.uoc.edu\/entornos-y-contenedores\/?page_id=137"},"modified":"2025-03-09T13:23:40","modified_gmt":"2025-03-09T11:23:40","slug":"2-8-renombrar-imagenes","status":"publish","type":"page","link":"http:\/\/eines-informatiques.recursos.uoc.edu\/entornos-y-contenedores\/es\/2-8-renombrar-imagenes\/","title":{"rendered":"2.8. Renombrar im\u00e1genes"},"content":{"rendered":"<p>En realidad, lo que crearemos es una copia de una imagen con un nuevo nombre. Para ello haremos:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"mowtwo\">$ docker image tag uoc\/numpy uoc\/alpine-numpy<\/pre>\n<p>Si la imagen es susceptible a evolucionar es importante mantener una numeraci\u00f3n por sus <em>tags<\/em>, como hemos visto en Docker Hub:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"mowtwo\">$ docker image tag uoc\/alpine-numpy uoc\/alpine-numpy:1.0.0<\/pre>\n<p>Si ahora mir\u00e1is las im\u00e1genes que ten\u00e9is creadas podr\u00e9is ver que en la columna <em>tag <\/em>tendr\u00e9is la versi\u00f3n que hemos creado ahora y la <em><code>latest<\/code><\/em>, que es por defecto, si no se especifica uno.<\/p>\n<div class=\"tabletitle\"><p>Tabla 4.<\/p>\n<\/div>\n<table width=\"642\">\n<tbody>\n<tr class=\"table-header\">\n<td width=\"128\"><strong>REPOSITORY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><\/td>\n<td width=\"128\"><strong>TAG<\/strong><\/td>\n<td width=\"128\"><strong>IMAGE ID\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><\/td>\n<td width=\"128\"><strong>CREATED\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong><\/td>\n<td width=\"128\"><strong>SIZE<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"128\">uoc\/numpy<\/td>\n<td width=\"128\">1.0.0<\/td>\n<td width=\"128\">af1700de32cb<\/td>\n<td width=\"128\">25 minutes ago<\/td>\n<td width=\"128\">588MB<\/td>\n<\/tr>\n<tr>\n<td width=\"128\">uoc\/numpy<\/td>\n<td width=\"128\">latest<\/td>\n<td width=\"128\">af1700de32cb<\/td>\n<td width=\"128\">25 minutes ago<\/td>\n<td width=\"128\">588MB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"tablefooter\"><p>Fuente: elaboraci\u00f3n propia.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>En realidad, lo que crearemos es una copia de una imagen con un nuevo nombre. Para ello haremos: $ docker image tag uoc\/numpy uoc\/alpine-numpy Si la imagen es susceptible a evolucionar es importante mantener una numeraci\u00f3n por sus tags, como hemos visto en Docker Hub: $ docker image tag uoc\/alpine-numpy uoc\/alpine-numpy:1.0.0 Si ahora mir\u00e1is las [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"acf":[],"_links":{"self":[{"href":"http:\/\/eines-informatiques.recursos.uoc.edu\/entornos-y-contenedores\/es\/wp-json\/wp\/v2\/pages\/137"}],"collection":[{"href":"http:\/\/eines-informatiques.recursos.uoc.edu\/entornos-y-contenedores\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/eines-informatiques.recursos.uoc.edu\/entornos-y-contenedores\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/eines-informatiques.recursos.uoc.edu\/entornos-y-contenedores\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/eines-informatiques.recursos.uoc.edu\/entornos-y-contenedores\/es\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":4,"href":"http:\/\/eines-informatiques.recursos.uoc.edu\/entornos-y-contenedores\/es\/wp-json\/wp\/v2\/pages\/137\/revisions"}],"predecessor-version":[{"id":470,"href":"http:\/\/eines-informatiques.recursos.uoc.edu\/entornos-y-contenedores\/es\/wp-json\/wp\/v2\/pages\/137\/revisions\/470"}],"wp:attachment":[{"href":"http:\/\/eines-informatiques.recursos.uoc.edu\/entornos-y-contenedores\/es\/wp-json\/wp\/v2\/media?parent=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}