Jump to content

SSH into Nginx docker


dgooglr

Recommended Posts

Hi,

So im all set with unraid and it works great.

I just installed Nginx and I’m able to see the page etc. however I would like to test out react and especially Gatsby js.

I’m struggling to understand how I can do that without SSH. (as im not able to ssh into that docker container)

Can anyone explain it to me please?

Link to comment
3 minutes ago, Squid said:

image.png.06edef32251f8cad3176c75f18830fe6.png

 

or alternatively, ssh into your server, then

 


docker exec -it nginx /bin/bash

 

Ok thanks. So first of all if I access it from web gui then none of my normal commands will work like: sudo apt-get update etc?

Same if I ssh into my unraid server and use that command, Im not able to use apt-get etc. Any pointers here?

 

Link to comment

Then apt-get is not installed in the container, and you will have to either install it yourself somehow or talk to the maintainers of it and see if they won't add it in.  (or switch to a VM)

 

Should be noted however that any changes etc you make inside a container will not survive any updates to the container.

Edited by Squid
Link to comment

Ok, that explains that. So I have now set up ubuntu in a VM, but when I use the console in the web gui, it doesnt give me many commands. so same issue here with the apt-get command. Any ideas what I need to do here?

 

Ideally I would just use remote desktop connection on my windows laptop to access it, but that gives me an error so im not able to do that.

Edited by dgooglr
Link to comment
2 minutes ago, dgooglr said:

when I use the console in the web gui, it doesnt give me many commands. so same issue here with the apt-get command. Any ideas what I need to do here?

If you're talking about the unRaid console, then unRaid doesn't include apt-get, and is based on slackware which doesn't use apt as a package manager.  Think of the base OS as something more akin to an appliance than to a full *nix install

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.

Guest
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.

×
×
  • Create New...