touch: cannot touch '/env': Permission denied for custom docker image root #420

Open
opened 2025-12-29 00:26:53 +01:00 by adam · 4 comments
Owner

Originally created by @justanhduc on GitHub (Nov 1, 2022).

Hi guys. I got an error touch: cannot touch '/env': Permission denied when running the docker with -e GENERATE_UNIQUE=true -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodesDocker-OSX/master/custom/config-nopicker-custom.plist when the docker image root is on an external drive. Could you let me know how to fix this? Thanks a lot.

Originally created by @justanhduc on GitHub (Nov 1, 2022). Hi guys. I got an error `touch: cannot touch '/env': Permission denied` when running the docker with `-e GENERATE_UNIQUE=true -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodesDocker-OSX/master/custom/config-nopicker-custom.plist` when the docker image root is on an external drive. Could you let me know how to fix this? Thanks a lot.
Author
Owner

@sickcodes commented on GitHub (Nov 18, 2022):

/env is the only thing I deprecated, have you got the latest image?

Also, small issue with nopicker'ing today (want to move the EFI option from boot menu)

@sickcodes commented on GitHub (Nov 18, 2022): `/env` is the only thing I deprecated, have you got the latest image? Also, small issue with nopicker'ing today (want to move the EFI option from boot menu)
Author
Owner

@byJohnJava commented on GitHub (Jan 13, 2023):

when running use the following argument: --user root

@byJohnJava commented on GitHub (Jan 13, 2023): when running use the following argument: --user root
Author
Owner

@SonicZentropy commented on GitHub (Jan 15, 2023):

This worked for me! Maybe add to the Readme?

@SonicZentropy commented on GitHub (Jan 15, 2023): > This worked for me! Maybe add to the Readme?
Author
Owner

@paulobreim commented on GitHub (Mar 5, 2023):

--user root work for me too.

@paulobreim commented on GitHub (Mar 5, 2023): --user root work for me too.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#420