Inherited Docker Instance and No Login

Hello,

I am not a Docker user normally, however, I have recently inherited a Docker instance on a Linux server in Azure. Long story short one of our developers went rogue about a year ago and just created this site using docker and pushed it live, then left.

Now it’s misbehaving. I have access to the command shell and can run commands, but I don’t have the admin login for the site that he build with Docker.

Any ideas on what I can do, I am kind of lost.

It is sad how many times it happened recently.

The way to get admin access, however, depends on the exact application, farmework or content management system. If the admin user and password can be find in files, you can just use those to log in. It is possible that it is only in the database. Then you need to know how the password is stored, what algorithm was used to create the password hash and create a new hash. If the app has a command line tool to regenerate the admin password, you can use that too. Maybe it has a tool to create a new user without registration.

So there are many ways but you probably need access to the database too. If you don’t have, you need to get that first. That is also depends on the database you are using.