You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The agent help banner (agent -help) states that running agent -version should:
Print the agent version information and exit
$ docker run --rm amazon/amazon-ecs-agent:latest -help
Usage of Amazon ECS Agent:
-blackhole-ec2-metadata
Blackhole the EC2 Metadata requests. Setting this option can cause the ECS Agent to fail to work properly. We do not recommend setting this option
-k Disable SSL certificate verification. We do not recommend setting this option
-license
Print the LICENSE and NOTICE files and exit
-loglevel string
Loglevel: [<crit>|<error>|<warn>|<info>|<debug>]
-version
Print the agent version information and exit
It does not do this.
$ docker run --rm amazon/amazon-ecs-agent:latest -version
2017-10-26T16:26:56Z [INFO] Loading configuration
2017-10-26T16:26:56Z [DEBUG] Environment variable empty: ECS_CONTAINER_STOP_TIMEOUT
2017-10-26T16:26:56Z [DEBUG] Environment variable empty: ECS_ENGINE_TASK_CLEANUP_WAIT_DURATION
2017-10-26T16:26:56Z [DEBUG] Environment variable empty: ECS_IMAGE_MINIMUM_CLEANUP_AGE
2017-10-26T16:26:56Z [DEBUG] Environment variable empty: ECS_IMAGE_CLEANUP_INTERVAL
2017-10-26T16:26:56Z [DEBUG] Loaded config: Cluster: , Region: us-west-2, DataDir: /data/, Checkpoint: false, AuthType: , UpdatesEnabled: false, DisableMetrics: false, ReservedMem: 0, TaskCleanupWaitDuration: 3h0m0s, DockerStopTimeout: 30s, PauseContainerImageName: amazon/amazon-ecs-pause, PauseContainerTag: 0.1.0
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.17: Get http://unix.sock/v1.17/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.18: Get http://unix.sock/v1.18/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.19: Get http://unix.sock/v1.19/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.20: Get http://unix.sock/v1.20/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.21: Get http://unix.sock/v1.21/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.22: Get http://unix.sock/v1.22/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.23: Get http://unix.sock/v1.23/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.24: Get http://unix.sock/v1.24/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.25: Get http://unix.sock/v1.25/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.26: Get http://unix.sock/v1.26/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.27: Get http://unix.sock/v1.27/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.28: Get http://unix.sock/v1.28/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.29: Get http://unix.sock/v1.29/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [ERROR] Unable to ping docker daemon. Ensure docker is running. module="TaskEngine" err="Get http://unix.sock/v1.17/version: dial unix /var/run/docker.sock: connect: no such file or directory"
2017-10-26T16:26:56Z [CRITICAL] Error creating Docker client: Get http://unix.sock/v1.17/version: dial unix /var/run/docker.sock: connect: no such file or directory
Description
Expected Behavior
agent -version should print the agent version information and exit.
Observed Behavior
agent -version attempts to start the agent, fails, and exits uncleanly without printing the agent version:
$ docker run --rm amazon/amazon-ecs-agent:latest -version
2017-10-26T16:26:56Z [INFO] Loading configuration
2017-10-26T16:26:56Z [DEBUG] Environment variable empty: ECS_CONTAINER_STOP_TIMEOUT
2017-10-26T16:26:56Z [DEBUG] Environment variable empty: ECS_ENGINE_TASK_CLEANUP_WAIT_DURATION
2017-10-26T16:26:56Z [DEBUG] Environment variable empty: ECS_IMAGE_MINIMUM_CLEANUP_AGE
2017-10-26T16:26:56Z [DEBUG] Environment variable empty: ECS_IMAGE_CLEANUP_INTERVAL
2017-10-26T16:26:56Z [DEBUG] Loaded config: Cluster: , Region: us-west-2, DataDir: /data/, Checkpoint: false, AuthType: , UpdatesEnabled: false, DisableMetrics: false, ReservedMem: 0, TaskCleanupWaitDuration: 3h0m0s, DockerStopTimeout: 30s, PauseContainerImageName: amazon/amazon-ecs-pause, PauseContainerTag: 0.1.0
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.17: Get http://unix.sock/v1.17/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.18: Get http://unix.sock/v1.18/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.19: Get http://unix.sock/v1.19/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.20: Get http://unix.sock/v1.20/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.21: Get http://unix.sock/v1.21/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.22: Get http://unix.sock/v1.22/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.23: Get http://unix.sock/v1.23/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.24: Get http://unix.sock/v1.24/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.25: Get http://unix.sock/v1.25/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.26: Get http://unix.sock/v1.26/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.27: Get http://unix.sock/v1.27/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.28: Get http://unix.sock/v1.28/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [INFO] Failed to ping with Docker version 1.29: Get http://unix.sock/v1.29/version: dial unix /var/run/docker.sock: connect: no such file or directory
2017-10-26T16:26:56Z [ERROR] Unable to ping docker daemon. Ensure docker is running. module="TaskEngine" err="Get http://unix.sock/v1.17/version: dial unix /var/run/docker.sock: connect: no such file or directory"
2017-10-26T16:26:56Z [CRITICAL] Error creating Docker client: Get http://unix.sock/v1.17/version: dial unix /var/run/docker.sock: connect: no such file or directory
Summary
The agent help banner (
agent -help
) states that runningagent -version
should:It does not do this.
Description
Expected Behavior
agent -version
should print the agent version information and exit.Observed Behavior
agent -version
attempts to start the agent, fails, and exits uncleanly without printing the agent version:Environment Details
Supporting Log Snippets
see contextual snippets above
The text was updated successfully, but these errors were encountered: