docker-container-running

Description

Installs docker (if necessary), then downloads and executes a Docker image.

TODO: Add other important 'docker run' flags. Maybe not all of them, have a 'docker-container-running-export' (or so) frecklet for that. Probably also have a different frecklet for interactive docker containers that can take command-line arguments. Not sure yet.

Variables

Name Type Default Description

image

string --

The image to use. Required

name

string --

A name to identify this container with. Required

volumes

list --

A list of volumes to mount. Required

ports

list []

A list of ports to expose on the host.

skip_docker_install

boolean False

Whether to assume docker is already installed.

users

list --

A list of users who will be added to the 'docker' group.

Command-line

frecklecute docker-container-running --help

Usage: frecklecute docker-container-running [OPTIONS]

  Installs docker (if necessary), then downloads and executes a Docker
  image.

  TODO: Add other important 'docker run' flags. Maybe not all of them, have
  a 'docker-container-running-export' (or so) frecklet for that. Probably
  also have a different frecklet for interactive docker containers that can
  take command-line arguments. Not sure yet.

Options:
  --image IMAGE              The image to use.  [required]
  --name NAME                A name to identify this container with.
                             [required]
  -v, --volume VOLUMES       A list of volumes to mount.  [required]
  -p, --port PORTS           A list of ports to expose on the host.  [default:
                             ]
  -s, --skip-docker-install  Whether to assume docker is already installed.
  -u, --user USER            A list of users who will be added to the 'docker'
                             group.
  --help                     Show this message and exit.