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.

Docker Commands inside a container

Featured Replies

Hello, 

 

I am wondering if its possible to allow containers to run / install other things inside of them.

 

For instance I have a WikiJS container installed and running without issue. However, I would like to use Cloudflared tunnel inside the WikiJS docker container, but this doesnt work of course because it doesnt have a full OS. 

 

I am still kind of new to the whole docker thing, and if this has been posted before I am sorry.

 

Thank you! 

Short answer is yes, you can click on the container in the GUI and select console, that will open a command prompt inside the container environment.

 

However...

When the container is updated, it will revert your changes.

 

To properly accomplish what you are asking the correct way is build a different container with the parts you need.

 

Depending on the complexity of what you are trying to do, it may be reasonable to script the changes and apply the script when needed.

  • Author

Thanks for the quick reply.

 

The problem is when I run the required command from Cloudflared in the Docker terminal for WikiJS the result is as follows. 

 

Quote

curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && 

dpkg -i cloudflared.deb && 

cloudflared service install

 

Quote

root@03d2cf9d5877:/# curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && 

dpkg -i cloudflared.deb && 

cloudflared service install 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 16.5M  100 16.5M    0     0  1935k      0  0:00:08  0:00:08 --:--:-- 2675k
bash: dpkg: command not found

 

Thanks! 

  • Community Expert

Containers can be based on various Linux distros, so you have to use instructions/packages for the distro the container is based on. 

For your use case, you should be able to run cloudflared container and your wikijs container separately on a custom docker network, then setup cloudflare to expose your wiki service. There are a few examples on cloudflared documentation if you search 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.