top of page

PMM Server podman: Benefits and Challenges of Running a Container Without root Privileges

  • downsandpicvestret
  • Aug 17, 2023
  • 2 min read


Some of the concerns companies have about using Docker relate to the security risks that exist due to the requirement for root privileges in order to run the service and therefore the containers. If processes inside the container are running as root then they are also running as such outside of the container, which means that you should take measures to mitigate privilege escalation issues that could occur from container breakout. Recently, Docker added experimental support for running in rootless mode which requires a number of extra changes.




PMM Server podman: Running a Container Without root Privileges



In order to use containers without the need for root privileges, some initial configuration is likely to be needed to set the mapping of namespaces, as well as a suitable limit. Using the shadow-utils package on CentOS, or uidmap package on Debian, it is possible to assign subordinate user (man subuid) and group IDs (man subgid) to allow the mapping of IDs inside a container to a dedicated set of IDs outside the container. This allows us to resolve the issue where a process is running as root both inside and outside of a container.


Great! As we can see from the processlist, none of the processes that we checked are running as root, the ones that are running as root inside the container are running as percona, and the remainder are using unknown user IDs generated by the subordinate mapping.


Or if running without giving a name to the container, you will have to use the ID of the container in the commands to stop and remove, even in various other commands you will be using the ID to refer that con


Hello , so if you are creating an mysql/mysql-server image based container the documentation specifies that docker will generate a randomic root password.So to check it out you can run the docker logs [my_sql_docker] (you put here de name or docker id from your container) and it will appear in the shell the random generated password for root


I have set up of Atlassian Jira, Confluence and Bitbucket using docker containers. The initial configuration was on CentOS 7. After 6 month of working without any problem recently i have restarted server and now i am getting: 2ff7e9595c


 
 
 

Recent Posts

See All
fifa mobile 8.1.0 apk

APK do FIFA Mobile 8.1.0: tudo o que você precisa saber Se você é fã de jogos de futebol, já deve ter ouvido falar FIFA Mobile, o popular...

 
 
 
Download da revista Speak Up

Como baixar a revista Speak Up e por que você deveria Se você está procurando uma revista que pode ajudá-lo a melhorar suas habilidades...

 
 
 

Comments


bottom of page