Skip to content

hodinhtuankiet/docker-microservice-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-getting-started-app

Practice Buid & Run , Share Docker

Dowload Oracal VM Virtual Box

https://drive.google.com/file/d/1z8UWyqm1u4KDPn68hxcbo3QVLrJBwZP7/view
Command tells you where you stand : pwd
Create new folder : mkdir tuankietdev
mount -t vboxsf ShareFilesDocker /root/tuankietdev
copy all file : copy -a tuankietdev/ . final/ ̣(copy file in folder tuankietdev to folder final)
RUN DOCKER : service docker start
docker compose -f 22.txt -p tuankietdev

Build your updated version of the image, using : docker build -t getting-started .
Start a new container using the updated code : docker run -dp 3000:3000 getting-started Container run only one Port
List image , container : docker ps or docker ps -a
You can stop and remove a container in a single command by adding : docker rm -f

Share Image To Docker Hub

Share docker if u without login Docker Hub : docker push docker/getting-started
If u have an error like this: denied: requested access to the resource is denied unauthorized: authentication required -> https://docs.docker.com/get-started/04_sharing_app/
Share docker with login Docker Hub : docker push tuankietdev(your-name)/getting-started
Then error : An image does not exist locally with the tag: tuankietdev/getting-started
Using solve to authozie repositories after built an Image(getting-started) : docker tag getting-started(name-image) YOUR-USER-NAME/getting-started(name repositories)
List image on docker : docker image ls

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published