GithubHelp home page GithubHelp logo

brunomacedo / docker-containers Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 38.92 MB

Create multiple containers

License: MIT License

HTML 59.44% Python 15.17% JavaScript 11.22% Shell 3.32% Batchfile 2.39% Dockerfile 8.45%

docker-containers's Introduction

Docker Multiple Containers

  • nginx from command line view

  • nginx from Dockerfile view

  • python from Dockerfile view

  • network container view

  • docker-compose example Nginx | Node | MongoDB | view

Node Container (From Dockerfile)

  • Dockerfile example Node | view

Create services with reverse proxy

  • run docker [frontend, backend, postgres] view

Apache Velocity and Ngnix

  • docker: html using apache velocity and server images with ngnix view

Commands

  • Inspect a specific config inside the Dockerfile. Show the label author Bruno Macedo <...>.
docker image inspect --format="{{index .Config.Labels \"maintainer\"}}" my-image
  • Remove all containers
docker rm $(docker ps -a -f status=exited -q)
  • Remove all images
docker image rm $(docker images -q)
  • Remove all volumes
docker volume rm $(docker volume ls -q)

Best practices for writing Dockerfiles follow

Just some reminders :

Run only one process in a container.
Never run a process as root in a container.
Never store data in a container, do it in a volume
Never store credentials in a container, do it in a volume
Keep your image up to date
Verify third-party container repositories
Use tool like docker-security-scanning
May the force be with you ๐Ÿ™

License

This project is licensed under the MIT License - see the LICENSE file for details

docker-containers's People

Contributors

brunomacedo avatar

Stargazers

 avatar

Watchers

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