一千萬個為什麽

搜索

嘗試在Alpine Linux 3.7.0上運行docker redis映像時出錯



產品規格


Microsoft Windows [Version 10.0.14393]
VirtualBox 5.2.8
Alpine Linux Extended 3.7.0

Docker信息


Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 17.10.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 0351df1c5a66838d0c392b4ac4cf9450de844e2d
init version: 949e6facb77383876aeff8a6944dde66b3089574
Kernel Version: 4.9.65-1-hardened
Operating System: Alpine Linux v3.7
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.953GiB
Name: node-4
ID: 3AVF:5SGV:6Y3P:HQW4:PTSU:BRA7:R3PL:AW4F:CIFW:BYDY:FY5P:O6GX
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

Issue Description


我正在嘗試在VirtualBox上的 Alpine Linux 設置上運行 bitname-redis-docker 映像。

docker run --name redis -e ALLOW_EMPTY_PASSWORD=yes bitnami/redis:latest

容器永遠不會啟動。檢查它說的日誌

Welcome to the Bitnami redis container
Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-redis
Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-redis/issues
Send us your feedback at [email protected]

PROT_EXEC|PROT_WRITE failed.
INFO  ==> Starting redis...
sed: can't read /opt/bitnami/redis/conf/redis.conf: No such file or directory
14:C 26 Apr 19:38:43.389 # Fatal error, can't open config file '/opt/bitnami/redis/conf/redis.conf'

為了進一步調查,我運行了 strace ,這是日誌輸出鏈接

有人能告訴我這裏發生了什麽嗎?難道我做錯了什麽?

轉載註明原文: 嘗試在Alpine Linux 3.7.0上運行docker redis映像時出錯

一共有 1 個回答:

One could also use a docker image from an official docker repository like https://hub.docker.com/r/library/redis/

docker run --name some-redis -d redis:alpine