Skip to content

VNC Naked version does not respect GENERATE_SPECIFIC #602

@mike-lloyd03

Description

@mike-lloyd03

When building an image with https://github.com/sickcodes/Docker-OSX/blob/master/vnc-version/Dockerfile.nakedvnc, I am unable to get it to generate specific serials/UUIDs passed in via the environment.

version: "3"

services:
  main:
    restart: unless-stopped
    devices:
      - /dev/kvm
    volumes:
      - /opt/docker/macvm/mac_hdd_ng_auto.img:/image
    image: docker-osx:nakedvnc
    ports:
      - 50922:10022
      - 5998:5999
    environment:
      - GENERATE_SPECIFIC=true
      - WIDTH=1600
      - HEIGHT=900
      - RAM=6

In my .env I have:

DEVICE_MODEL="MacBookPro9,1"
SERIAL=*********
BOARD_SERIAL=*****************
UUID=********-****-****-****-************
MAC_ADDRESS=**:**:**:**:**:**

But when I boot the machine, it is using the default serials and UUIDs. I think the problem is because the Dockerfile has two CMD instructions and only the second one is being executed (per Docker docs).

How can this Dockerfile be reworked to allow GENERATE_SPECIFIC to be honored?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions