https://github.com/adimit/docker-util
Docker utility image with common commands to link into your containers
https://github.com/adimit/docker-util
Last synced: 11 months ago
JSON representation
Docker utility image with common commands to link into your containers
- Host: GitHub
- URL: https://github.com/adimit/docker-util
- Owner: adimit
- Created: 2015-11-09T14:04:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-09T14:20:01.000Z (over 10 years ago)
- Last Synced: 2025-02-15T16:42:31.405Z (over 1 year ago)
- Language: Shell
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `docker-util`
A bulky image with all kinds of utility installed. You can use it to link to
existing containers and do things to them, while they're running.
## Get a db prompt in a mysql container
~~~
docker run --name "db" -e MYSQL_ROOT_PASSWORD -d mariadb
docker run --rm -ti --link db:db adimit/util /bin/sh -c 'mysql -uroot -hdb -p${DB_ENV_MYSQL_ROOT_PASSWORD}'
~~~
## Open a stream to a service
~~~
docker run --name memcache -d memcached
docker run --rm -ti --link memcache:mc adimit/util telnet mc 11211
~~~
(You could also use netcat.)
# License
This repository is public domain.