from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209586

userrating:


May 25th. 2007:
Words

486

Views

258592

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

149883

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





DOCKER

Section: Docker User Manuals (1)
Updated: Jun 2025
Index Return to Main Contents

 

NAME

docke-imag-tag- Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE

 

SYNOPSIS

docker image tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]

 

DESCRIPTION

Assigns a new alias to an image in a registry. An alias refers to the entire image name including the optional TAG after the ':'.

 

OPTIONS

NAME
   The image name which is made up of slas-separated name components,
   optionally prefixed by a registry hostname. The hostname must comply with
   standard DNS rules, but may not contain underscores. If a hostname is
   present, it may optionally be followed by a port number in the format
   :8080. If not present, the command uses Docker's public registry located at
   registr-1.docker.io by default. Name components may contain lowercase
   letters, digits and separators. A separator is defined as a period, one or
   two underscores, or one or more dashes. A name component may not start or end
   with a separator.

TAG
   The tag assigned to the image to version and distinguish images with the same
   name. The tag name must be valid ASCII and may contain lowercase and
   uppercase letters, digits, underscores, periods and hyphens. A tag name
   may not start with a period or a hyphen and may contain a maximum of 128
   characters.

 

EXAMPLES

 

Tagging an image referenced by ID

To tag a local image with ID "0e5574283393" into the "fedora" repository with "version1.0":

docker image tag 0e5574283393 fedora/httpd:version1.0

 

Tagging an image referenced by Name

To tag a local image with name "httpd" into the "fedora" repository with "version1.0":

docker image tag httpd fedora/httpd:version1.0

Note that since the tag name is not specified, the alias is created for an existing local version httpd:latest.

 

Tagging an image referenced by Name and Tag

To tag a local image with name "httpd" and tag "test" into the "fedora" repository with "version1.0.test":

docker image tag httpd:test fedora/httpd:version1.0.test

 

Tagging an image for a private repository

Before pushing an image to a private registry and not the central Docker registry you must tag it with the registry hostname and port (if needed).

docker image tag 0e5574283393 myregistryhost:5000/fedora/httpd:version1.0

 

SEE ALSO

docke-image(1)


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
Tagging an image referenced by ID
Tagging an image referenced by Name
Tagging an image referenced by Name and Tag
Tagging an image for a private repository
SEE ALSO





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 13.7 ms