Category : root

Problem: Running dotnet test in container as non root user fails. Details: dotnet test runs successfully using the following docker file and docker command on running as root user. Docker file: FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build WORKDIR /app # run the tests COPY [".", "."] ENTRYPOINT ["dotnet","test"] Docker build command: docker build -t test:v1 . Docker ..

Read more

I have this docker-compose file: version: "3" services: db: image: mysql/mysql-server:5.7 container_name: mysqldb restart: always environment: MYSQL_ROOT_PASSWORD: 4dfLtRah2C MYSQL_DATABASE: db MYSQL_PASSWORD: le562BplPk MYSQL_USER: db_user networks: – backend volumes: – ./db_data:/var/lib/mysql phpmyadmin: container_name: phpmyadmin depends_on: – db image: phpmyadmin/phpmyadmin restart: always ports: – ‘9006:80’ environment: MYSQL_ROOT_PASSWORD: 4dfLtRah2C PMA_PORT: 3306 PMA_HOST: db networks: – backend networks: backend: ..

Read more

I am trying to build a Kafka-Connect image in Docker: FROM confluentinc/cp-kafka-connect but it runs as appuser Step 4/4 : RUN id —> Running in d2094f6336a7 uid=1000(appuser) gid=1000(appuser) groups=1000(appuser) so if I want for example RUN mkdir -p /usr/share/landoop-plugins it stops because of root privilages: mkdir: cannot create directory ‘/usr/share/landoop-plugins’: Permission denied The command ‘/bin/sh ..

Read more