Skip to content

Instantly share code, notes, and snippets.

@bfolkens
Created August 24, 2016 03:14
Show Gist options
  • Save bfolkens/b6fc286fd698b6058dd039dfa00cbc07 to your computer and use it in GitHub Desktop.
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.
{
"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