{"task": {"agent_timeout": 3000, "task": "codegen__containerd__containerd-9182", "verifier_timeout": 3000, "instruction": "This is a code generation task. You are expected to write working code that solves the described problem.\n<issue>\n      ### Description\n\nUpdate 'https://github.com/containerd/containerd/pull/7438' introduced the use of 'http' as DefaultScheme from v1.6.9 onwards. Prior to 1.6.9, 'https' was used as DefaultScheme for localhost. This update has caused containerd to error out while pulling container images from 'http://localhost:<port>/<container_image_path>' where 'https' option had worked previously as in  'https://localhost:<port>/<container_image_path>'.\n\nThe localhost change needs an option in '/etc/containerd/config.toml' to override the DefaultScheme from http to https.\n\n\n### Steps to reproduce the issue\n\n1. While deploying a pod, set image path to something like - image: localhost:<port>/<container_image_path>\n2. Container image pull request fails and error (400) msg shows the use of http instead of https - \"http://localhost:<port>...\"\n\n\n\n### Describe the results you received and expected\n\n(a) If 'DefaultScheme' is defined as \"http\" or absent in config.toml, we should see \"http://localhost:<port>...\" in the output while downloading images.\n\n(a) If 'DefaultScheme' is defined as \"https\" in config.toml, we should see \"https://localhost:<port>...\" in the output while downloading images.\n\n\n\n### What version of containerd are you using?\n\n1.6.9\n\n### Any other relevant information\n\n_No response_\n\n### Show configuration if it is related to CRI plugin.\n\n_No response_\n\n</issue>\nFocus on implementing the required functionality correctly and efficiently. Treat this as a programming challenge.\nYou are not allowed to read git history.\n", "memory": "8192m", "runnable": false, "difficulty": "hard", "language": "", "cpus": "", "instruction_truncated": false, "category": "code-generation", "compose": false, "has_solution": true, "oracle": null, "docker_image": "", "taskset": "devopsgym", "tags": ["code-generation", "devops-bench"]}, "runs": []}