How to run a docker instance with params in Docker Desktop?
Asked Answered
C

1

15

In my macos, I want to run centos instance with like command:

docker run --rm -it --cap-add SYS_ADMIN os sh

but when I open the Docker Desktop there only can set Container Name and Volumes

enter image description here

how can I implement my requirement?

Clemmie answered 24/5, 2021 at 4:12 Comment(0)
J
1

To use Docker Desktop for running a container (though it is not recommended), you should select an image. Then, by clicking on the RUN command, it will prompt you to choose optional settings. You can configure the container with those settings. See this image:

Jugate answered 28/1, 2024 at 6:31 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.