Difference between revisions of "ContainerDefinitions official example"

From wikieduonline
Jump to navigation Jump to search
(Created page with "<pre> [ { "name": "string", "image": "string", "repositoryCredentials": { "credentialsParameter": "string" }, "cpu": integer, "memory": integer...")
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<pre>
+
 
[
+
[
 
   {
 
   {
 
     "name": "string",
 
     "name": "string",
Line 7: Line 7:
 
       "credentialsParameter": "string"
 
       "credentialsParameter": "string"
 
     },
 
     },
     "cpu": integer,
+
     "[[cpu]]":1,
     "memory": integer,
+
     "memory": XXXXXX,
 
     "memoryReservation": integer,
 
     "memoryReservation": integer,
 
     "links": ["string", ...],
 
     "links": ["string", ...],
     "portMappings": [
+
     "[[portMappings]]": [
 
       {
 
       {
         "containerPort": integer,
+
         "[[containerPort]]": 80,
 
         "hostPort": integer,
 
         "hostPort": integer,
 
         "protocol": "tcp"|"udp",
 
         "protocol": "tcp"|"udp",
Line 39: Line 39:
 
       ...
 
       ...
 
     ],
 
     ],
     "mountPoints": [
+
     "[[mountPoints]]": [
 
       {
 
       {
         "sourceVolume": "string",
+
         "[[sourceVolume]]": "string",
 
         "containerPath": "string",
 
         "containerPath": "string",
 
         "readOnly": true|false
 
         "readOnly": true|false
Line 47: Line 47:
 
       ...
 
       ...
 
     ],
 
     ],
     "volumesFrom": [
+
     "[[volumesFrom]]": [
 
       {
 
       {
 
         "sourceContainer": "string",
 
         "sourceContainer": "string",
Line 164: Line 164:
 
   }
 
   }
 
   ...
 
   ...
]
+
]
</pre>
+
 
 +
== Related ==
 +
* <code>[[Dockerfile]]</code>
 +
 
 +
== See also ==
 +
* {{ContainerDefinitions}}
 +
* {{aws ecs tasks}}
 +
* {{Fargate}}
 +
 
 +
[[Category:AWS]]

Latest revision as of 12:39, 29 May 2023

[
 {
   "name": "string",
   "image": "string",
   "repositoryCredentials": {
     "credentialsParameter": "string"
   },
   "cpu":1,
   "memory": XXXXXX,
   "memoryReservation": integer,
   "links": ["string", ...],
   "portMappings": [
     {
       "containerPort": 80,
       "hostPort": integer,
       "protocol": "tcp"|"udp",
       "name": "string",
       "appProtocol": "http"|"http2"|"grpc",
       "containerPortRange": "string"
     }
     ...
   ],
   "essential": true|false,
   "entryPoint": ["string", ...],
   "command": ["string", ...],
   "environment": [
     {
       "name": "string",
       "value": "string"
     }
     ...
   ],
   "environmentFiles": [
     {
       "value": "string",
       "type": "s3"
     }
     ...
   ],
   "mountPoints": [
     {
       "sourceVolume": "string",
       "containerPath": "string",
       "readOnly": true|false
     }
     ...
   ],
   "volumesFrom": [
     {
       "sourceContainer": "string",
       "readOnly": true|false
     }
     ...
   ],
   "linuxParameters": {
     "capabilities": {
       "add": ["string", ...],
       "drop": ["string", ...]
     },
     "devices": [
       {
         "hostPath": "string",
         "containerPath": "string",
         "permissions": ["read"|"write"|"mknod", ...]
       }
       ...
     ],
     "initProcessEnabled": true|false,
     "sharedMemorySize": integer,
     "tmpfs": [
       {
         "containerPath": "string",
         "size": integer,
         "mountOptions": ["string", ...]
       }
       ...
     ],
     "maxSwap": integer,
     "swappiness": integer
   },
   "secrets": [
     {
       "name": "string",
       "valueFrom": "string"
     }
     ...
   ],
   "dependsOn": [
     {
       "containerName": "string",
       "condition": "START"|"COMPLETE"|"SUCCESS"|"HEALTHY"
     }
     ...
   ],
   "startTimeout": integer,
   "stopTimeout": integer,
   "hostname": "string",
   "user": "string",
   "workingDirectory": "string",
   "disableNetworking": true|false,
   "privileged": true|false,
   "readonlyRootFilesystem": true|false,
   "dnsServers": ["string", ...],
   "dnsSearchDomains": ["string", ...],
   "extraHosts": [
     {
       "hostname": "string",
       "ipAddress": "string"
     }
     ...
   ],
   "dockerSecurityOptions": ["string", ...],
   "interactive": true|false,
   "pseudoTerminal": true|false,
   "dockerLabels": {"string": "string"
     ...},
   "ulimits": [
     {
       "name": "core"|"cpu"|"data"|"fsize"|"locks"|"memlock"|"msgqueue"|"nice"|"nofile"|"nproc"|"rss"|"rtprio"|"rttime"|"sigpending"|"stack",
       "softLimit": integer,
       "hardLimit": integer
     }
     ...
   ],
   "logConfiguration": {
     "logDriver": "json-file"|"syslog"|"journald"|"gelf"|"fluentd"|"awslogs"|"splunk"|"awsfirelens",
     "options": {"string": "string"
       ...},
     "secretOptions": [
       {
         "name": "string",
         "valueFrom": "string"
       }
       ...
     ]
   },
   "healthCheck": {
     "command": ["string", ...],
     "interval": integer,
     "timeout": integer,
     "retries": integer,
     "startPeriod": integer
   },
   "systemControls": [
     {
       "namespace": "string",
       "value": "string"
     }
     ...
   ],
   "resourceRequirements": [
     {
       "value": "string",
       "type": "GPU"|"InferenceAccelerator"
     }
     ...
   ],
   "firelensConfiguration": {
     "type": "fluentd"|"fluentbit",
     "options": {"string": "string"
       ...}
   }
 }
 ...
]

Related[edit]

See also[edit]

Advertising: