Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hodinhtuankiet/docker-microservice-express
- Owner: hodinhtuankiet
- Created: 2024-03-15T17:23:53.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-05-09T01:46:41.000Z (6 months ago)
- Last Synced: 2024-05-09T02:43:35.047Z (6 months ago)
- Topics: docker-hub, linux, virtual-box
- Language: JavaScript
- Homepage:
- Size: 674 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 `