Created
August 24, 2016 03:14
-
-
Save bfolkens/b6fc286fd698b6058dd039dfa00cbc07 to your computer and use it in GitHub Desktop.
Task definition to run a GPU enabled task in ECS. Similar behavior to the nvidia-docker project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"containerDefinitions": [ | |
{ | |
"memory": 2048, | |
"essential": true, | |
"mountPoints": [ | |
{ | |
"containerPath": "/hostlib", | |
"sourceVolume": "hostlib", | |
"readOnly": true | |
}, | |
{ | |
"containerPath": "/hostusr", | |
"sourceVolume": "hostusr", | |
"readOnly": true | |
} | |
], | |
"privileged": true, | |
"name": "gputask", | |
"image": "your.docker.io/someimage:latest", | |
"cpu": 8192 | |
} | |
], | |
"volumes": [ | |
{ | |
"host": { | |
"sourcePath": "/usr" | |
}, | |
"name": "hostusr" | |
}, | |
{ | |
"host": { | |
"sourcePath": "/lib" | |
}, | |
"name": "hostlib" | |
} | |
], | |
"family": "gputask" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment