Coder Social home page Coder Social logo

docker-bench-security's Introduction

Docker Bench for Security

Overview

Docker Bench for Security is a script that checks for dozens of common best-practices around deploying Docker containers in production. It provides a convenient way to assess the security configurations of your Docker environment against a set of recommended practices.

Features

  • Automated checks for Docker security configurations.
  • Supports both manual and automated checks.
  • Provides a score indicating the security posture of your Docker setup.

Installation

  1. Clone the Docker Bench for Security repository:

    git clone https://github.com/docker/docker-bench-security.git
  2. Navigate to the cloned directory:

    cd docker-bench-security

Running with Docker

Building Docker image

You have two options if you wish to build and run this container yourself:

  1. Use Docker Build:
    git clone https://github.com/docker/docker-bench-security.git
    cd docker-bench-security
    docker build --no-cache -t docker-bench-security .

Followed by an appropriate bash docker run command.

  1. Use Docker Compose:
    git clone https://github.com/docker/docker-bench-security.git
    cd docker-bench-security
    docker-compose run --rm docker-bench-security

Usage

  1. Run the Docker Bench for Security script:

    sudo sh docker-bench-security.sh
  2. Optionally, you can redirect the output to a JSON file:

    sudo sh docker-bench-security.sh -l /output-folder/docker-bench_output
    

Now you can use the python file to export the .json to a readable .html

docker-bench-security's People

Contributors

jesus-almansa 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.