Making settings permanent

I am using docker desktop version 4.37.2 (179585) on a macbook pro running Sequoia 16.1.1
I want to run some images, and figured out that I can click on Images, select my image, and then click on run.
I then am able to set the Optional settings. Once these settings completed, a new container is created and strted.
But how can I make these optional settings permanent. so to say simulate a doker run -d -p xx:xx -v source:destination
I know it is really a beginner question,but lots of people say the best way to use docker on a personal machine is using docker desktop and not directly use docker run or docker compose, but i still miss a little knowledge here

There is only 15.1.1, not 16.1.1. I have 15.2.

I’m not sure what your question is. The Docker DEsktop GUI is to play with Docker until you learn the commands. I don’t know who says you don’t need to learn commands and compose, but it is not true. Compose is one of the most important tool you need to learn. Every time you run a container (not an image) from the GUI, you set the parameters for that container and those parameters will be permanent for that container. It could not be not permanent since when you create a container that cannot be changed only deleted and recreated. That is what Docker Compose is for. You cannot set default parameters that would be used whenever you chose a specific image.

If you want to learn the basics I can share the following

Recommended links to learn the basics and concepts:

Thank you, As you may have seen, i am an absolute newbie in this docker world. One last question : if i run this container, and then stop and restart it, will the settings be retained for this container? If yes, my problem is solved

Stopping and restarting containers will not change the container. Just make sure you don’t delete the containers. Sometimes people use docker compose down to “stop” containers, but that actually deletes containers while docker compose stop would stop them. Since you are not using compose yet, it is not relevant to you, but it is good to know. And be careful where you click on the GUI so you don’t accidentally delete the container instead of stoppping it.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.