macos icon indicating copy to clipboard operation
macos copied to clipboard

Cannot start image: "Error response from daemon..." Changing port?

Open stefanjakobi opened this issue 1 year ago • 3 comments

Operating system

Synology RS1221+ - Docker

Description

I try to create the project, but always getting this error message: Error response from daemon: driver failed programming external connectivity on endpoint sonoma: Error starting userland proxy: listen tcp4 0.0.0.0:5900: bind: adress already in use Exit Code: 1

Maybe i have to change the tcp port in my yaml file, but when i try 5901 or something else, i get this error message: Bind mount failed: 'macos' does not exist. Exit Code: 1

I think the image could not be found now, because i changed the port.

Can somebody help me with that problem? I am really new with docker...

Thanks a lot! Stefan

Docker compose

services:
  macos:
    image: dockurr/macos
    container_name: sonoma
    environment:
      VERSION: "14"
      environment:
      RAM_SIZE: "8G"
      CPU_CORES: "4"
    devices:
      - /dev/kvm
      - /dev/net/tun
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 5901:5901/tcp
      - 5900:5900/udp
    volumes:
      - ./macos:/storage
    restart: always
    stop_grace_period: 2m

Docker log

Dont know where to find at my synology

Screenshots (optional)

No response

stefanjakobi avatar Aug 05 '25 14:08 stefanjakobi

Please remove those ports from your compose file and only use 8600, should solve the problem.

kroese avatar Sep 18 '25 16:09 kroese

Thanks for your help! Now the error message is gone, but i got a new on:

Error response from daemon: Bind mount failed: 'volume4/docker/macos' does not exist Exit Code: 1

Is there a step, i have missed? Do i have to create a folder manually?

stefanjakobi avatar Sep 21 '25 10:09 stefanjakobi

The example just uses a folder in your working directory, but if you are using Container Manager on Synology I am not sure what the working folder will be during execution. So it's best to replace - ./macos:/storage with an absolute path, like: - /volume1/macos:/storage so you know which folder it will be using.

kroese avatar Sep 21 '25 11:09 kroese