1.1.0 • Published 10 months ago

docker-boot v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

docker-boot

Quickly start a temporary container and go into the container's terminal. Easy to remember!

Comparison

Original:

  • docker run --rm -it <image> <command>
  • docker exec -it $(docker ps -q -f name=<container name>) <command>

vs

  • docker-boot <image> <command>
  • docker-exec <container name> <command>

Isn't it easier to remember?

Installation

npm install docker-boot -g

Usage

docker-boot

A short command that boot up a temporary container

Alias of docker run --rm -it <image> <command>.

docker-boot <image>

# Examples
docker-boot alpine
docker-boot debian:stable-slim
docker-boot centos:7
docker-boot louislam/uptime-kuma:1

Run a command in the container or change the shell:

docker-boot <image> <command>

# Examples
docker-boot centos:7 ls
docker-boot centos:7 sh

docker-exec

A short command that go into a running container.

Alias of docker exec -it $(docker ps -q -f name=<container name>) <command>.

docker-exec <container name>

# Examples
docker-exec uptime-kuma

# You can input a part of the container name, and the script will try to find the container for you.
docker-exec uptime # Which will find the `uptime-kuma` container

Run a command in the container or change the shell:

docker-exec <container name> <command>

# Examples
docker-exec uptime-kuma ls
docker-exec uptime-kuma sh
1.0.2

10 months ago

1.1.0

10 months ago

1.0.1

1 year ago

1.0.0

1 year ago