Giter Site home page Giter Site logo

azure_docker_pipline_demo's Introduction

Docker Documentation

Table of contents

Make sure Docker Compose is installed

For Linux, Mac, and Windows: Docker Desktop

Command to test Docker in your terminal

Use this command to run Docker hello-world image

docker run hello-world

Login to Docker Hub

generate a token from docker hub or github container registry:

github:

  • go to settings
  • Click on developer settings at the bottom
  • Click on personal access tokens tab
  • Click on Tokens (classic)
  • Click on generate new Token (classic)
  • Enable the settings: write:packages and delete:packages
  • Give it a name then generate the token

docker hub:

  • click on the drop down near your user name on the top right
  • click account settings
  • click on security then new access token
  • name it then generate one

Enter your username and token (as a password) using the following flags, either for GitHub Container Registry or Docker Hub.

echo "YOUR_PERSONAL_ACCESS_TOKEN" | docker login ghcr.io -u YOUR_GITHUB_USERNAME --password-stdin

Commands to start the project

All the commands you need to start and stop the project are here in this section.

Start the project by using this command to pull the built image and run it in a container:

docker compose up app-dev

Stop the project and remove the container created:

docker compose down app-dev

Note: After running docker compose down the image you pulled will still exist on your local computer

Note: For production you just replace app-dev with app-prod

Useful Docker commands

See all docker images

docker image ls

See all docker containers

docker ps -a

Remove an image

docker rmi image_name_or_ID

Remove a container

docker rm container_name_or_ID

Build the image:

  • -t is to rename the file and you can add a tag that's included below after the colon ":"
docker build -f Dockerfile.dev -t ghcr.io/letsgettechnical/name:tag .

azure_docker_pipline_demo's People

Contributors

clue355 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.