Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

nsenter and docker-enter / docker-bash

Featured Replies

Curious if anyone has used nsenter?  It is discussed here:

  http://blog.docker.com/2014/06/why-you-dont-need-to-run-sshd-in-docker/

and in the latest phusion-baseimage readme:

  https://github.com/phusion/baseimage-docker#login_nsenter

 

It provides shell access to any running docker image without having to deal with SSH keys or modify the docker images.  There are two ways to install it in the unRAID host:

 

1) This docker command will drop nsenter plus a wrapper script (docker-enter) into /usr/local/bin:

  docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter

You'll need to re-run this command every time you reboot. 

 

2) Or you can install nsenter and phusion's wrapper script (docker-bash) as described here:

  https://github.com/phusion/baseimage-docker#docker_bash

Again, you'll need to re-install after every reboot.  Unless someone wants to make a plugin?  :)

 

Once it is installed you just type:

  docker-enter YOUR-CONTAINER-ID

or:

  docker-bash YOUR-CONTAINER-ID

i.e.

  docker-[enter|bash] PlexMediaServer

then you can poke around to look at what is running or check logs, etc.  It is really helpful when developing a dockerfile because you have much more visibility into why a command is failing.

 

phusion officially supports nsenter in version 0.9.12 of their baseimage, but it seems to work for me in 0.9.11.  I can't tell from the release notes:

  http://blog.phusion.nl/2014/07/17/baseimage-docker-0-9-12-released/

if there are changes in the latest that we need for nsenter.

The difference is that in 0.9.11, nsenter was included but unsupported. Now, with 0.9.12, Phusion will start to support this, just that.

 

For development it should be useful, but the final Dockerfile shouldn't have SSH or nsenter, as they could be a serious security threat, specially on those containers exposed on the internet.

 

I will eventually remove ssh and maybe nsenter from my containers.

 

PS. Appears that nscenter only works in the system using namespaces, so it should be safe to use.

 

I reviewed the jpetazzo/nsenter code. It's just a build environment. Copy the /usr/local/bin and delete the container.

 

I made a .txz package for it: https://dl.dropboxusercontent.com/u/18726846/nsenter-2.24-x86_64-1_unRAID.txz

Maybe I'm misreading things, but it seems 'nsenter' is strictly a HOST only program and doesn't impact the Docker Images at all.

Maybe I'm misreading things, but it seems 'nsenter' is strictly a HOST only program and doesn't impact the Docker Images at all.

 

Look above.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.