Git Product home page Git Product logo

docker-playground's Introduction

Docker Playground

Experimentation with Docker images and containers.

Some Useful Docker Commands

$ docker build -t <image_name> .                                   # Build image
$ docker run --rm -it <image_name>                                 # Start container (interactive)
$ docker run --rm -it <image_name> sh                              # Start container with shell (interactive)
$ docker run --rm -p 8080:80 <image_name>                          # Start container binding port 8080 to container port 80
$ docker run --rm --name <container_name> -p 8080:80 <image_name>  # Start container with explicit name
$ docker run --rm -d -p 8080:80 <image_name>                       # Start container as daemon
$ docker exec -it <container_name> sh                              # Access a running container
$ docker stop <container_name>                                     # Stop container (STOPSIGNAL SIGTERM)
$ docker kill <container_name>                                     # Kill container
$ docker ps                                                        # List running active container
$ docker ps -a                                                     # List active container
$ docker rm $(docker ps -a -f status=exited -f status=created -q)  # Delete all containers
$ docker rmi $(docker images -f dangling=true -q)                  # Remove dangling images

Docker Images

Lambda Go

Examples to create containerized AWS lambda functions in Go. See README in the subdirectory for more details.

Lambda Java

Example to create containerized AWS lambda functions in Java. For more details, See the respective README files:

Lua

$ docker build -t lua-dev .
$ docker run --rm lua-dev
  • Note: No readline in REPL

LuaJIT

$ docker build -t luajit-dev .
$ docker run --rm luajit-dev
  • No readline in REPL

Nim

See the README in the nim folder

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.