Experimentation with Docker images and containers.
$ 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
Examples to create containerized AWS lambda functions in Go. See README in the subdirectory for more details.
Example to create containerized AWS lambda functions in Java. For more details, See the respective README files:
$ docker build -t lua-dev .
$ docker run --rm lua-dev
- Note: No readline in REPL
$ docker build -t luajit-dev .
$ docker run --rm luajit-dev
- No readline in REPL
See the README in the nim
folder