Docker Commands inside a container

Recommended Posts



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! 

Link to comment

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.



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.

Link to comment

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. 



curl -L --output cloudflared.deb && 

dpkg -i cloudflared.deb && 

cloudflared service install



[email protected]:/# curl -L --output cloudflared.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



Link to comment

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 


Link to comment

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.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.