Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

Other • unable to run mysql as docker

$
0
0
I'm trying to run the mysql as docker in raspberry pi

Code:

services:  mysql:    image: arm64v8/mysql:latest    container_name: mysql    environment:      - PUID=1000      - PGID=1000      - MYSQL_ROOT_PASSWORD=test    volumes:      - ${PWD}/config/conf.d:/etc/mysql/conf.d    ports:      - 3306:3306    restart: unless-stoppednetworks:  mysql-network:
On start up, I'm getting following error

Attaching to mysql
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: unable to start unit "docker-68baf13d3715b40ef4a7f4641604b5f171604498ef1e4f01eb4b9138d5b56c89.scope" (properties [{Name:Description Value:"libcontainer container 68baf13d3715b40ef4a7f4641604b5f171604498ef1e4f01eb4b9138d5b56c89"} {Name:Slice Value:"system.slice"} {Name:Delegate Value:true} {Name:PIDs Value:@au [340831]} {Name:MemoryAccounting Value:true} {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): failed to connect to dbus (hint: for rootless containers, maybe you need to install dbus-user-session package, see https://github.com/opencontainers/runc/ ... roup-v2.md): dial unix /run/systemd/private: connect: connection refused: unknown


And dbus is already installed.

and version in use
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Statistics: Posted by boomramada — Fri May 23, 2025 11:49 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles