oneoffcoder/docker-exe

By oneoffcoder

Updated over 6 years ago

A demo of a container that may be used as a executable.

Image
0

93

oneoffcoder/docker-exe repository overview

Purpose

This container shows how to build a container that may be used as a executable. The idea is to use the ENTRYPOINT and CMD instructions together. The ENTRYPOINT instruction points to the program and the CMD instruction may be used to capture arguments passed into the docker container at runtime to pass to the program (pointed to by ENTRYPOINT). In this example, we have a simple Python program that takes in the first, middle and last name and prints hello, first_name middle_name last_name! back to the console.

Source

GitHub

Docker

Pull it.

docker pull oneoffcoder/docker-exe:latest

Run it.

Observe it.

docker run -it oneoffcoder/docker-exe -f Donald -m John -l Trump

Tag summary

Content type

Image

Digest

Size

86 MB

Last updated

over 6 years ago

docker pull oneoffcoder/docker-exe