wurstmeister / zookeeper-docker

Apache License 2.0
147 stars 176 forks source link

[DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2 #32

Open kasir-barati opened 10 hours ago

kasir-barati commented 10 hours ago

Hi,

I have my compose file:

services:
  kafka:
    image: wurstmeister/kafka:2.13-2.8.1
    ports:
      - 9092:9092
    depends_on:
      zookeeper:
        condition: service_started
    env_file: .env
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./third-party/kafka/jaas.conf:/app/config/jaas.conf
  zookeeper:
    image: wurstmeister/zookeeper:3.4.6
    hostname: zookeeper
    ports:
      - 2181:2181

And this .env file:

KAFKA_ADVERTISED_HOST=kafka
KAFKA_ADVERTISED_PORT=9092
KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
KAFKA_LISTENERS=SASL_PLAINTEXT://:9092
KAFKA_SASL_ENABLED_MECHANISMS=SCRAM-SHA-256,SCRAM-SHA-512
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=SASL_PLAINTEXT:SASL_PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME=SASL_PLAINTEXT
KAFKA_ADVERTISED_LISTENERS=SASL_PLAINTEXT://kafka:9092
KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL=SCRAM-SHA-256
KAFKA_OPTS="-Djava.security.auth.login.config=/app/config/jaas.conf"

But I get this error when I try to execute docker compose up command in my terminal:

[+] Running 0/2
 ⠙ zookeeper Pulling                                                                                            2.2s 
 ⠙ kafka Pulling                                                                                                2.2s 
[DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of docker.io/wurstmeister/zookeeper:3.4.6 to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/
kasir-barati commented 10 hours ago

latest works fine but I was hoping to have a concrete version instead of using latest tag. I also forgot to add details about my system:

docker version:

Client:
 Version:           27.1.1
 API version:       1.46
 Go version:        go1.22.5
 Git commit:        63125853e3
 Built:             Thu Jul 25 17:06:22 2024
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          27.1.1
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.22.5
  Git commit:       cc13f95251
  Built:            Thu Jul 25 17:06:22 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.7.20
  GitCommit:        8fc6bcff51318944179630522a095cc9dbf9f353.m
 runc:
  Version:          1.1.13
  GitCommit:        
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

uname -a

Linux kasir-lifebooke736 6.1.105-1-MANJARO #1 SMP PREEMPT_DYNAMIC Wed Aug 14 17:16:54 UTC 2024 x86_64 GNU/Linux