Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hodinhtuankiet/docker-microservice-express


https://github.com/hodinhtuankiet/docker-microservice-express

docker-hub linux virtual-box

Last synced: about 13 hours ago
JSON representation

Awesome Lists containing this project

README

        

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

## Implement With Docker Desktop : https://docs.docker.com/get-started/03_updating_app/
`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 `