Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 784
user7693832 Avatar asked Jan 30 '26 06:01

user7693832


1 Answers

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:

like image 156
Alireza.Bz Avatar answered Feb 01 '26 21:02

Alireza.Bz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!