none
ERROR: Access is denied "reg add ..." RRS feed

  • Question

  • When trying to run the following command in the latest nanoserver-insider docker image I get the following error.

    RUN reg add HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters /t REG_DWORD /v ServerPriorityTimeLimit /d 0 /f

    ERROR: Access is denied

    What do I need to do to disable DNS cache in the latest nanoserver-insider docker image?

    Thanks.

    Tuesday, October 10, 2017 1:39 PM

All replies

  • More Info

    https://hub.docker.com/r/microsoft/nanoserver-insider/

    https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/nano-rs3-.net-core-and-ps

    https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/insider-known-issues

    You can see the following comments.

    Nano Server now runs as user, so commands that require administrator priviliges will fail.

    So what I'm asking is how to run a command like the reg command that needs admin priviliges.  Thanks.

    Tuesday, October 10, 2017 1:40 PM