Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker image add tag

## After build your image
## Get your build ID
docker images tiagofranca/php-81-fpm-dev

## You will get some like this:
REPOSITORY                   TAG       IMAGE ID       CREATED         SIZE
tiagofranca/php-81-fpm-dev   latest    9153e9fb37e3   4 minutes ago   571MB

## Now you can create a image TAG based on your image
docker tag 9153e9fb37e3 tiagofranca/php-81-fpm-dev:22-06-01

## DONE!
## Now you have 2 images
docker images tiagofranca/php-81-fpm-dev
REPOSITORY                   TAG        IMAGE ID       CREATED         SIZE
tiagofranca/php-81-fpm-dev   22-06-01   9153e9fb37e3   4 minutes ago   571MB
tiagofranca/php-81-fpm-dev   latest     9153e9fb37e3   4 minutes ago   571MB

## To push:
docker push tiagofranca/php-81-fpm-dev

# or
docker push tiagofranca/php-81-fpm-dev:22-06-01
Comment

docker tag image

docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
# example ('0e5574283393' is local image id)
docker tag 0e5574283393 fedora/httpd:version1.0
Comment

PREVIOUS NEXT
Code Example
Shell :: ss in linux command stands for 
Shell :: How to list manually installed packages in ubuntu 
Shell :: grep last word in line 
Shell :: postinstall docker 
Shell :: npm fibers windows error 
Shell :: git branch from current branch 
Shell :: how to copy file in ubuntu terminal 
Shell :: how to install windows from a hard drive 
Shell :: bash for add one 
Shell :: tar exclude multiple directories 
Shell :: get history command without line numbers 
Shell :: helm docker generate doc 
Shell :: ffmpeg reduce video size 
Shell :: download docker ubuntu 
Shell :: git delete all local branches starting with 
Shell :: how to view hidden files in mac terminal 
Shell :: add anaconda to bash 
Shell :: net speed monitor for ubuntu 
Shell :: laptop slow performance linux ubuntu 
Shell :: install drush on ubuntu 
Shell :: git remove first stash 
Shell :: how to install pip ubuntu python2 
Shell :: linux unpack .tar 
Shell :: bluetooth does not work after lock ubuntu 
Shell :: add group 
Shell :: take sudo access inside vim 
Shell :: path/to/sdkmanager --install "cmdline-tools;latest" 
Shell :: how to install dataloader 
Shell :: svn commit file 
Shell :: curl certificate and password 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =