Git Product home page Git Product logo

docker-microservice-express's Introduction

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

docker-microservice-express's People

Contributors

hodinhtuankiet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.