How to access command line in remote docker server

How do I access the command line of the docker server that is generated by Wappler?

I have the IP address, and the user is probably root. But what is the password?

My end goal is to get HTTPS working on this server, but I’ve heard the team is building an easy SSL switch too. Is there any ETA on that @George?

Accessing the command line is usually pretty basic, and it might be the case here too but I’m not sure. It probably has something to do with the keys in the .docker folder in windows. How do I proceed?

Anyone??

Hi Nevil,

Sorry for the delay.

To connect to the server with digital ocean you can use the general SSH:

If you want a command line to a specific docker running instance, like the web server or the database server, you can use directly the Wappler terminal, when you select the right instance, see:

1 Like

Aaah yes the Wappler terminal does it.

Now if I want to install SSL using Certbot/Letsencrypt, do I use the web server to install it there?

image

I am following the official certbot instructions as noted here: https://certbot.eff.org/lets-encrypt/ubuntubionic-apache.html

First error I get in the terminal is the following:

bash: sudo: command not found

Leaving out sudo does work though, but then I’m stuck at this point:

image

Gives me in the terminal:

Error: 'universe' invalid

And then I’m stuck again. I cannot find anything about this issue online either.

This is a bit difficult!

Ah apparently it’s not Ubuntu what is installed by Wappler, but Debian?

cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

But in Digital Ocean it says Ubuntu 18.04:

image

Is this correct @George?

That is definitely not the way to do it Nevil.

You can’t just go in to the docker containers and install stuff manually.

On the next rebuild of the docker containers - all your changes will be gone.

This is how docker works and it is perfect to have everything auto installed and a clean sheet.

To have your SSL installed you should either do it in other dedicated docker containers for that or central on your server with SSH.

I already provided some links to possible ways to do it with Traefik. see:

Hope to get it more integrated in Wappler soon.

Ah jeez, all that time spent… Well I would have to wait a bit more then. The links you provided are too intimidating and long to implement for me. Hope I can use something out of the box from Wappler asap.

@George does the same problem occur when I set cronjobs on the webserver? If so, what would be a way to setup cronjobs on the remote docker instance?

Maybe this will help you:

Do note, as stated:

You are way better off running Docker cron jobs from your host system, not from inside your Docker containers. Your Docker containers should only have one concern only, and not be saddled with the weight of cron jobs.

1 Like