Giter Site home page Giter Site logo

dockerfiles's Introduction

Dockerfiles

Trusted Builds also available in the Docker registry. Each folders contains a README with more information about the respective Dockerfile. Sections below provide info on installing and using docker.

Installing docker on Mac

Install with the Docker Toolbox - https://www.docker.com/docker-toolbox. Then add the following to your .bashrc or .zshrc and open a new terminal:

eval "$(docker-machine env default)"

Installing docker on Ubuntu

Follow instructions here - https://docs.docker.com/installation/ubuntulinux/. Then, add yourself to docker group so you can run docker client without sudo. To do so, run the command below and logout and login again:

$ sudo usermod -aG docker `whoami`

Installing docker on CentOS

Follow instructions here - https://docs.docker.com/installation/centos/. Then, add yourself to docker group so you can run docker client without sudo and disable SELinux as it gets in the way of mounting volumes within the container. To do so, run the commands below and reboot your system.

    $ sudo usermod -aG docker `whoami`

    # Creates back up of the original file at `/etc/selinux/config.bak`.
    $ sed -i .bak 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

Test that docker is correctly installed

The following should give an encouraging message:

$ docker run hello-world

Useful docker commands

# Stop all containers
docker stop (docker ps -a -q)
# Remove all containers
docker rm (docker ps -a -q)
# Remove all images
docker rmi (docker images -a -q)

Run containers without Docker

Docker has great features, however in most HPC it cannot be used due to security issues. However, the OS can be extracted from a container and run with chroot or in a VM. Example:

docker ps -a 
# CONTAINER ID        IMAGE                    COMMAND             CREATED             STATUS                           PORTS               NAMES
# d555fe341045        busybox                  "/bin/sh"           About an hour ago   Exited (139) About an hour ago                       elegant_poitras
docker export elegant_poitras > elegant_poitras.tar
tar xf elegant_poitras.tar
npm install -g mini-container
sudo mini-container bin/sh

dockerfiles's People

Contributors

yeban avatar bmpvieira avatar bitdeli-chef avatar

Stargazers

Hiroyuki Nakamura avatar Rodrigo Alberto avatar

Watchers

 avatar Yannick Wurm avatar James Cloos 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.