Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

push docker image to docker hub

## 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

push to docker hub

sudo docker push $DOCKER_ACC/$DOCKER_REPO:$IMG_TAG
Comment

push to docker hub

## Create tag
docker -t [name-of-repo] [dockerhub-username]/[name-of-repo]

## Push to dockerhub
docker push [dockerhub-username]/[name-of-repo] 
Comment

PREVIOUS NEXT
Code Example
Shell :: npm install and add to dependancies 
Shell :: scp linux 
Shell :: linux encrypt pdf 
Shell :: how to see what files are committed in git 
Shell :: jekyll new site 
Shell :: create service without spec 
Shell :: ubuntu theme change command 
Shell :: git remove vendor folder from remote 
Shell :: how to archive files in linux 
Shell :: flutter pub get taking too long 
Shell :: pacman corrupted package 
Shell :: amazon linux wireguard 
Shell :: git merge local branch 
Shell :: how to find the changes in git 
Shell :: bash remove first and last quotes 
Shell :: using unit price prestashop 
Shell :: change shell script to executable 
Shell :: get tag list of image from hub using cli 
Shell :: protonvpn install ubuntu debian 
Shell :: deploy github actions with firebase 
Shell :: mocha quiet 
Shell :: read a file and count how many lines 
Shell :: Merge Remote Repository With Local Repository in git command 
Shell :: du linux 
Shell :: sbatch: error: Batch script contains DOS line breaks ( ) sbatch: error: instead of expected UNIX line breaks ( ). 
Shell :: boolean in shell script 
Shell :: centos 7 install docker compose 
Shell :: find file 
Shell :: zgrep recursive 
Shell :: how to empty text file in unix 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =