8000 GitHub - siggib007/tutorial-docker-command: Scripts to demonstrate the ways to build the main process inside a Docker container
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

siggib007/tutorial-docker-command

 
 

Repository files navigation

Building the main process inside Docker container

This source code was created for a Hungarian Youtube tutorial It demonstrates how you can build the main process (the first process with 1 as PID) inside a Docker container using SHELL, ENTRYPOINT and CMD.

Each Dockerfile has a version number. You can run the tests using test.sh and passing the version as an argument:

./test.sh v1
./test.sh v2

Pass as command optionally as the secnd argument

./test.sh v1 'echo "Hello Docker"'

Run all tests using test-all.sh

./test-all.sh

Or delete everything with reset.sh

./reset.sh

NOTE: This script will delete container with a name starting with "command-v" and images which have names starting with "localhost/command:". Make sure you don't have any image or container that you don't want to delete.

About

Scripts to demonstrate the ways to build the main process inside a Docker container

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%
0