phatcat Posted January 17 Share Posted January 17 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! Quote Link to comment
JonathanM Posted January 17 Share Posted January 17 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. Quote Link to comment
phatcat Posted January 17 Author Share Posted January 17 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 [email protected]:/# 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! Quote Link to comment
Kilrah Posted January 17 Share Posted January 17 Containers can be based on various Linux distros, so you have to use instructions/packages for the distro the container is based on. Quote Link to comment
apandey Posted January 18 Share Posted January 18 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 Quote Link to comment
Recommended Posts
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.