Giter Site home page Giter Site logo

nikolausmayer / docker-templates Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 10 KB

A collection of Dockerfiles and corresponding Makefiles/runscripts, introducing specific features

License: MIT License

Makefile 29.41% Shell 35.96% Dockerfile 34.63%
docker examples

docker-templates's Introduction

Dockerfile templates

This repository contains example Dockerfile, helpful for learning how to build your own Docker image for reproducible runtime environments. Each Dockerfile here highlights specific features, i.e. they are mutually disjoint but can be combined by cherrypicking desired features.

Each folder contains a "Dockerfile" (think "Makefile for Docker"), a standard Makefile to make building easier, and a script to start an interactive shell in the respective image.

01-basics

A barebones example.

02-shared-folders

How to enable "volumes" in a Docker image; these "volumes" work like "shared folders" in a VM, i.e. they allow for file transfer between the host machine and a Docker container.

03-enable-x-display

How to enable graphical displays in a container; useful for GUI applications.

04-local-user-passthrough

By default, Docker runs with a root user. This makes file exchange between the host and a container cumbersome. This example details how to "copy" the local user's ID into the container for frictionless data transfer.

05-nvidia-gpu-access

Vanilla Docker makes using a host GPU difficult. NVidia has a special Docker runtime for this: https://github.com/NVIDIA/nvidia-docker This example shows how to use it.

docker-templates's People

Contributors

nikolausmayer avatar

Watchers

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