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

image taggen docker

docker tag <containerid> <yourtag>
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 :: vi replace 
Shell :: fetch from remote branch 
Shell :: Remove duplicated files from git 
Shell :: xargs curl url 
Shell :: mac kill process 
Shell :: sed substitute a word in a file by the content in another file 
Shell :: shell save variable 
Shell :: .m2 folder in unix 
Shell :: xargs 
Shell :: Redirect output from within the shell script 
Shell :: grep remove -- 
Shell :: install cypress for nextjs 
Shell :: kali linux not signing in 
Shell :: bash for in loop 
Shell :: npm install tough-cookie 
Shell :: insert bash command to docker-compose file 
Shell :: how to activate conda/Anaconda environment 
Shell :: how to use usb 3 with virtualbox 
Shell :: git force overwrite of local files 
Shell :: mac terminal wifi commands 
Shell :: git hub new repo 
Shell :: how to ls git branch 
Shell :: how to get specific lines of shell output 
Shell :: install node_modules folder 
Shell :: git https basic access denied 
Shell :: apt upgrade full 
Shell :: cp command 
Shell :: creating new branch 
Shell :: how to exit git in terminal 
Shell :: create a new file in bash script 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =