Category : superuser

For some reason as I was exploring Linux users and groups, the id command on a user I created in an Alpine container gives the following: # id botmyaccount uid=10001(botmyaccount) gid=10001(botmyaccount) groups=10001(botmyaccount),10001(botmyaccount) which is confusing to me because it seems there is a duplicate of the botmyaccount (same name as the created user) group in ..

Read more

I am learning over the weekend. Just now installed the Docker Desktop for MAC from the docker hub. I ran the initial setup commands and did not face any issues. I ran this docker run –publish 80:80 nginx:1.18 Unable to find image ‘nginx:1.18’ locally 1.18: Pulling from library/nginx f7ec5a41d630: Pull complete 0b20d28b5eb3: Pull complete 1576642c9776: ..

Read more

I have a simple django-mongo application. I have a dockerfile for my django application. I have a docker-compose.yml which contains django and mongo images. I am able to build and run the django-mongo application using docker-compose commands. the problem I am facing is I am unable to log into the django admin-panel using superuser credentials. ..

Read more

This is my docker-compose file section for postgres container. These settings are fine, but my django app requires this user to have superuser previlleges through this command inside postgresql. ALTER ROLE project_admin SUPERUSER; How can this be accomodated inside this docker-compose file? db: image: postgres:latest container_name: project-db environment: – POSTGRES_USER=’project_admin’ – POSTGRES_PASS=’projectpass’ – POSTGRES_DB=’project’ Source: ..

Read more