Skip to content

Not run mysql 5.7 in docker #840

Closed
Closed
@forestuser

Description

@forestuser

Hi. Mysql does not start

docker run --cpus=".5" --memory=4g -d --name mysql -e MYSQL_ROOT_PASSWORD=admin -e MYSQL_DATABASE=app-db -e MYSQL_USERNAME=app-user -e MYSQL_PASSWORD=app-secret mysql:5.7

docker logs 572bf0f67ae6

2022-04-08 20:20:46+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
2022-04-08 20:21:22+00:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
command was: mysqld --verbose --help --log-bin-index=/tmp/tmp.cDE9Y3Xtww

docker info

Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.8.1-docker)
scan: Docker Scan (Docker Inc., v0.17.0)

Server:
Containers: 13
Running: 0
Paused: 0
Stopped: 13
Images: 328
Server Version: 20.10.14
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8
runc version: v1.0.3-0-gf46b6ba
init version: de40ad0
Security Options:
seccomp
Profile: default
cgroupns
Kernel Version: 5.16.18-200.fc35.x86_64
Operating System: Fedora Linux 35 (KDE Plasma)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.58GiB
Name: tkachuk-kv.localhost
ID: ZHLA:YNSD:2NNK:SLYH:TVM4:FWBV:XGFL:3T5K:IUQU:BNZ7:BKVG:LU6N
Docker Root Dir: /home/docker_data
Debug Mode: false
Username: inextuser
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions