containers_docker:specs
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
containers_docker:specs [2025/07/15 06:25] – created kirtisingh | containers_docker:specs [2025/07/15 08:14] (current) – kirtisingh | ||
---|---|---|---|
Line 3: | Line 3: | ||
Below are the details provided for the JSON specs which are required for launching container. These JSON specs are used to create a Docker Compose YAML file in the background, therefore it will have many attributes similar to the Docker Compose YAML. | Below are the details provided for the JSON specs which are required for launching container. These JSON specs are used to create a Docker Compose YAML file in the background, therefore it will have many attributes similar to the Docker Compose YAML. | ||
- | To make the explanation simple, below is pasted a working spec. The explanation follows subsequently. | + | To make the explanation simple, below is pasted a working spec. The explanation follows subsequently. The keys which begin with an underscore are treated as comments. |
< | < | ||
Line 10: | Line 10: | ||
" | " | ||
" | " | ||
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
" | " | ||
- | "_ Below entry denotes /home/amazingtronics/ | + | "_ Below entry denotes /home/example/ |
- | "/ | + | "/ |
- | "_ Below entry denotes /home/amazingtronics/ | + | "_ Below entry denotes /home/example/ |
- | "/ | + | "/ |
], | ], | ||
" | " | ||
- | " | + | " |
" | " | ||
- | " | + | " |
" | " | ||
" | " | ||
Line 30: | Line 30: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | * **repo_name** - required - It is actually the image name. | ||
+ | * **tag_name** - optional - The tag associate with the repo/image. If no tag is specified, ' | ||
+ | * **image_file_path** - optional - If this attribute is not provided, the system will try to pull the image from the Docker Hub. But when it is provided, it will try to load image(s) from the specified file. | ||
+ | * **container_entry_point** - conditional - If provided, will be used as the entry point in Docker' | ||
+ | * **container_cmd** - conditional - If provided, will be used as the command in Docker' | ||
+ | < | ||
+ | " | ||
+ | </ | ||
+ | * **container_user** - required - The system user under which the container runs. | ||
+ | * **container_volumes** - optional - An array of system folders which are made accessible to the container | ||
+ | * * e.g. the entry of / | ||
+ | * * e.g. the entry of / | ||
+ | * **container_port** - optional - The port within the container on which your application runs | ||
+ | * **vhost** - conditional - Associated VHost/ | ||
+ | * **vhost_url** - conditional - If vhost is used | ||
+ | * **open_port** - optional - The port via which the container will be accessible to the world. If this attribute is present , then container_port is also required. | ||
+ | |||
+ |
containers_docker/specs.1752560742.txt.gz · Last modified: 2025/07/15 06:25 by kirtisingh