Answering my own question to help others:

Outside the container (on the host machine), issue:

chown 1001:1001 /dados3/activemq/data 

and then problem solved.

KR,

Edson R.



-----Mensagem original-----
De: Edson Richter <edsonrich...@hotmail.com> 
Enviada em: sábado, 11 de novembro de 2023 08:49
Para: users@activemq.apache.org
Assunto: Running ActiveMQ Artemis 2.31.2 using docker-compose.yml results in 
error " path '.' is not writable "

OS: Oracle EL 7.9
Docker: Docker Engine - Community Version:           24.0.7
Image: apache/activemq-artemis:2.31.2-alpine
Docker-compose.yml file is:

version: "2.3"

services:
  activemq-logs:
    image: apache/activemq-artemis:2.31.2-alpine
    network_mode: host
    cpus: 2
    mem_limit: 2048M
    environment:
      TZ: "America/Sao_Paulo"
      ARTEMIS_USER: "xxxxxxxxxxxxxxx"
      ARTEMIS_PASSWORD: "yyyyyyyyyyyyyyyyyyyyyy"
      EXTRA_ARGS: "--http-host 0.0.0.0 --relax-jolokia"
    volumes:
      - /dados3/activemq/data:/var/lib/artemis-instance:rw
    restart: unless-stopped


when I start with "docker compose up -d", I got:

CREATE_ARGUMENTS=--user xxxxxxxxxxxxxxx --password yyyyyyyyyyyyyyyyyyyyyy 
--silent --require-login --http-host 0.0.0.0 --relax-jolokia

The path '.' is not writable.
Usage: artemis help [<args>...]
use 'help <command>' for more information
      [<args>...]


Does my mapped volumn (/dados3/activemq/data) needs special permissions?

KR,

Edson R.

Reply via email to