docker-library / memcached

Docker Official Image packaging for memcached
http://memcached.org/
BSD 3-Clause "New" or "Revised" License
132 stars 99 forks source link

Error "Can't start logger thread: Operation not permitted" on container startup #92

Closed MauroOyhanart closed 11 months ago

MauroOyhanart commented 1 year ago

When creating container with docker-compose version v2.20.3 and Docker Engine version 19.03.2. Using image from Docker Official Repository. And the following being the docker-compose.yml:

version: '3.3'

services:
  memcached:
    image: memcached:latest
    container_name: memcached
    restart: always
    ports:
      - "11211:11211"
    networks:
      - hosting_network
    volumes:
      - ./log:/var/log/memcached.log

networks:
  hosting_network:
    name: hosting_network
    driver: bridge

The container will not start, with the following error logs:

user@server:/path/to/memcached_folder$ docker-compose up

[+] Running 1/0
 ✔ Container memcached  Created                                                                 0.0s 
Attaching to memcached
memcached  | Can't start logger thread: Operation not permitted
memcached exited with code 139
memcached exited with code 0

Running on Ubuntu 16.04.6 LTS (xenial). My guess is, the docker version might be too old?

1st edit: locally, with newer Docker versions, works just fine.

dfuentes77 commented 1 year ago

yeah, I'm getting these errors in concourse trying to pull the latest alpine version of memcached container:

waiting for docker to come up...
Login Succeeded
Pulling memcached@sha256:535282ea08869aedc9bd20cbd714f07a27019c8b1e3aa64aa7321c96fb747844...
Error response from daemon: missing signature key

Pulling memcached@sha256:535282ea08869aedc9bd20cbd714f07a27019c8b1e3aa64aa7321c96fb747844 (attempt 2 of 3)...
Error response from daemon: missing signature key

Pulling memcached@sha256:535282ea08869aedc9bd20cbd714f07a27019c8b1e3aa64aa7321c96fb747844 (attempt 3 of 3)...
Error response from daemon: missing signature key

Failed to pull image memcached@sha256:535282ea08869aedc9bd20cbd714f07a27019c8b1e3aa64aa7321c96fb747844.

when I pull the same container locally, it pulls fine

$ docker pull --platform linux/amd64  memcached:alpine
alpine: Pulling from library/memcached
Digest: sha256:535282ea08869aedc9bd20cbd714f07a27019c8b1e3aa64aa7321c96fb747844
Status: Image is up to date for memcached:alpine
docker.io/library/memcached:alpine
dfuentes77 commented 1 year ago

I'm still seeing this error on the latest build of memcached tag alpine: https://hub.docker.com/layers/library/memcached/alpine/images/sha256-2a0d426a0e8842f181936bbe7378fc20b7fad3f02414130c6b7a12ef3ffd8010?context=explore

I don't see any documentation as to why a change would be made to cause this, any breaking change notice, or notice on the docker hub page. Can anyone speak to the cause and official documentation on breaking change?

yosifkit commented 1 year ago

Any errors running the a memcached container is very likely libseccomp related with the move to Debian Bookworm in https://github.com/docker-library/memcached/pull/88 (see also https://github.com/docker-library/python/issues/837#issuecomment-1599640563).

Any issues pulling the image is the same as https://github.com/docker-library/redis/issues/381#issuecomment-1765431018