'How to set docker container name in Pycharm Docker Interpreter
I'm using Pycharm (2021.2.2) on MacOS (11.6).
I want to specify --name
when using the Docker interpreter.
However, when I entered --name
in Edit Docker container Settings
, I got an error like this and could not set it.
How can I set the container name?
I know it can be set in docker-compose.yaml. I want to specify the container name using Docker Interpreter.
If anyone knows, please let me know.
Solution 1:[1]
I solved this problem. --name
position was wrong.
This is works fine!
--name container_name --entrypoint= --rm --network=my_network
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Nori |