Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamsoorena/goinside
🐠 Command line tool that helps going inside docker containers 🐠
https://github.com/iamsoorena/goinside
Last synced: 10 days ago
JSON representation
🐠 Command line tool that helps going inside docker containers 🐠
- Host: GitHub
- URL: https://github.com/iamsoorena/goinside
- Owner: iamsoorena
- License: mit
- Created: 2018-08-13T07:31:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-17T20:31:45.000Z (about 4 years ago)
- Last Synced: 2024-08-30T22:37:59.148Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 29
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-docker - goinside - Get inside a running docker container easily. by [@iamsoorena](https://github.com/iamsoorena) (Container Operations / User Interface)
- awesome-docker - goinside - Get inside a running docker container easily. by [@iamsoorena](https://github.com/iamsoorena) (Container Operations / User Interface)
README
# Goinside
*goinside* is a command line tool that helps you run bash inside docker containers easily.
You can look at `goinside` as an alternative for `docker exec -it container_name bash` with some tweaks.People have problems with going inside docker containers.
like:
* [How do I get into a Docker container?](https://stackoverflow.com/questions/30172605/how-do-i-get-into-a-docker-container)
* [How to get bash or ssh into a running container in background mode?](https://askubuntu.com/questions/505506/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode)
* [How to enter in a Docker container already running with a new TTY](https://stackoverflow.com/questions/20932357/how-to-enter-in-a-docker-container-already-running-with-a-new-tty)
* [How do I run a command on an already existing Docker container?](https://stackoverflow.com/questions/26153686/how-do-i-run-a-command-on-an-already-existing-docker-container)
## Installation
Install package globally on your system:
```
npm i goinside -g
```
Or if you prefer yarn:
```
yarn global install goinside
```
## Usage
Let's say you have a docker container that has `bash` installed in it.
```
docker run -d --name test_container ubuntu tail -F nothing
```
Now you can open up a terminal inside your container([with proper size](https://stackoverflow.com/questions/38786615/docker-number-of-lines-in-terminal-changing-inside-docker)):
```
goinside test_container [bash/sh]
```
### dlist
Also this package comes with a modified version of `docker ps` command named `dlist`, you can use this one simply by typing:
```
dlist
```