I tried my best to get the inputs and outputs of the Dockerrun format. Check out Container Transform : "Converting Docker, ECS, and Marathon Configurations" ... it's a life saver. Here is what it outputs for your example:
{ "containerDefinitions": [ { "essential": true, "image": "postgres", "name": "db" }, { "command": [ "python", "manage.py", "runserver", "0.0.0.0:8000" ], "essential": true, "mountPoints": [ { "containerPath": "/code", "sourceVolume": "_" } ], "name": "web", "portMappings": [ { "containerPort": 8000, "hostPort": 8000 } ] } ], "family": "", "volumes": [ { "host": { "sourcePath": "." }, "name": "_" } ] } Container web is missing required parameter "image". Container web is missing required parameter "memory". Container db is missing required parameter "memory".
That is, in this new format, you must indicate how much memory is allocated for each container. In addition, you need to provide an image - there is no possibility for assembly. As mentioned in the comments, you want to create and click on DockerHub or ECR, and then specify this location: for example [org name]/[repo]:latest on Dockerhub or URL for ECR. But container-transform for you mountPoints and volumes is awesome.
source share