docker-playground

module
v0.0.0-...-d35ab91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2021 License: MIT

README

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

Directories

Path Synopsis
lambda_go
custom command
provided command
scratch command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL