HUB
Sign inSign up

kojiromike/docker-compose-wrapper

By kojiromike

•Updated over 11 years ago

Image
0

4.6K

kojiromike/docker-compose-wrapper repository overview

⁠Docker Compose Wrapper

Use Docker Compose without installing it.

⁠What it is

Docker Compose⁠ is a Python program that orchestrates Docker containers. But if you have Docker, you don't want to install and manage a Python program. So here is a bash function that runs a Docker container that runs Docker Compose... which runs Docker.

⁠How to use it

Source the docker-compose-wrapper script from your .bashrc. Then, use docker-compose commands like usual.

⁠Demo

$ . docker-compose-wrapper
$ type docker-compose
docker-compose is a function
docker-compose ()
...
$ docker-compose run --rm test
I am a very busy box
Removing compose_test_run_1...
Tag summary
Recent tags
Content type
Image
Digest
sha256:b54ddf75c…
Size
16.1 MB
Last updated
over 11 years ago
docker pull kojiromike/docker-compose-wrapper:latest