Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryotarai/dokku-nsinit
Dokku plugin to execute commmands in the Docker containers.
https://github.com/ryotarai/dokku-nsinit
Last synced: 9 days ago
JSON representation
Dokku plugin to execute commmands in the Docker containers.
- Host: GitHub
- URL: https://github.com/ryotarai/dokku-nsinit
- Owner: ryotarai
- Created: 2014-09-01T14:35:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-02T04:40:40.000Z (almost 10 years ago)
- Last Synced: 2024-11-07T17:04:42.355Z (about 2 months ago)
- Language: Shell
- Homepage:
- Size: 145 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dokku-nsinit
============**This plugin is deprecated.**
Execute commmands in the Docker containers.
> With great power comes great responsibility.
![](http://media.tumblr.com/b1370b7b7f035e8b62ae8d33e4fd0d4e/tumblr_inline_n9ee84uBgz1raprkq.gif)
Installation
------------Clone:
```
$ cd /var/lib/dokku/plugins
$ git clone https://github.com/ryotarai/dokku-nsinit.git nsinit
```Build nsinit:
```
# Make sure that go is installed.
$ go get github.com/docker/libcontainer/nsinit
$ cp $(which nsinit) /var/lib/dokku/plugins/nsinit/nsinit
```Edit sudoer:
```
$ visudo
# Add the following line:
%dokku ALL=(ALL)NOPASSWD:/var/lib/dokku/plugins/nsinit/exec_nsinit
```Usage
-----```
$ ssh dokku@dokku-host nsinit app-name uptime
14:35:01 up 1 days, 3:46, 0 users, load average: 0.04, 0.03, 0.05
Connection to dokku-host closed.
$ ssh -t dokku@dokku-host nsinit app-name /bin/bash
root@xxxxxxxxxxx:/# ls
app boot cache etc home lib64 mnt proc run selinux start tmp var
bin build dev exec lib media opt root sbin srv sys usr
```