amazon/amazon-ecs-network-sidecar pulls statistics
By amazon (82 listings) · Docker Hub
Network sidecar container with SSH access and network troubleshooting tools for ECS.
amazon/amazon-ecs-network-sidecar has 39,730 recorded pulls on Docker Hub, an increase of 4.4% over the past 30 days, ranking #576 of 1,291 tracked listings.
About amazon/amazon-ecs-network-sidecar
Amazon ECS Network Sidecar (V2)
What does it do?
The purpose of this container is to be deployed in the same network namespace as another docker container and to provide a user with easy access to various network related troubleshooting tools. In accordance with Docker design principles, application containers most often are lightweight by design and do not often have easy access to valuable troubleshooting tools that would have to be installed in the container after gaining access to it in the first place.
This tool can easily be deployed on any Linux host that has a docker daemon running on it and be attached to the network namespace of an existing container (or even the host's network namespace), to perform tasks such as capturing TCP packets, running a traceroute and more, all without the need of accessing the container we're troubleshooting directly or installing additional software.
To explain how this works, network namespaces provide isolation of the system resources associated with networking. Docker uses network and other type of namespaces (pid, mount, user..etc) to create an isolated environment for each container. Everything from interfaces, routes, and IPs is completely isolated within the network namespace of the container and by deploying this tool into the same network namespace as another container any network information that is being collected by the tools provided by 'amazon-ecs-network-sidecar' will apply to the container we are attaching to.
How to deploy it?
With host access:
When SSH access to the underlying host is possible, you can simply launch the container directly into the network
namespace as a running container. First find the CONTAINER ID of the running container you'd like to troubleshoot
with docker ps.
Example:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c282e7783f42 nginx "/docker-entrypoint.…" 2 seconds ago Up 1 second 80/tcp nostalgic_kare
Now start the sidecar container with the following command syntax (fill in your own container ID):
docker run -it --rm --net container:c282e7783f42 public.ecr.aws/aws-se/amazon-ecs-network-sidecar /usr/bin/zsh
Likewise you can also start the Amazon ECS Network Sidecar container in the same network namespace as the host to use any of the installed tooling to troubleshoot host related network issues:
docker run -it --rm --net public.ecr.aws/aws-se/amazon-ecs-network-sidecar /usr/bin/zsh
Deploy in ECS Fargate
As running docker run commands in this situation is not possible you will need to include the Amazon ECS Network
Sidecar container in the same task definition as the container you are trying to troubleshoot, similar to the following
example (container definition):
{
"name" : "sidecar",
"image" : "public.ecr.aws/aws-se/amazon-ecs-network-sidecar",
"essential": false,
"environment": [
{
"name" : "SIDECAR_RUN_MODE",
"value" : "SLEEPER"
}
],
"linuxParameters": {
"initProcessEnabled": true
}
}
Then, using Amazon ECS Exec you will be able to connect to the running container. If your cluster does not support Amazon ECS Exec, additional run modes are supported both for backwards compatibility with V1 of this image.
Example:
aws ecs execute-command --cluster cluster-name --task task-id \
--container sidecar --interactive --command /usr/bin/zsh
Available Tools/Packages
tcpdump- A popular packet analyzer, used to capture network packets for an attached network interface.traceroute- Diagnostic tool for displaying possible routes (paths) and measuring transit delays of packets across an Internet Protocol (IP) network.telnet- An application protocol used to provide a bidirectional interactive text-oriented communication facility using a virtual terminal connection.nmap- A port scanning tool that can be used to verify if a listening port is being blocked by a target host.bind-utils- Provides various DNS related commands, such as dig & nslookup, useful in determining DNS resolution.iperf3- Iperf is a tool for network performance measurement and tuning.net-tools- A collection of base networking utilities for Linux, such as ifconfig and netstat.iproute2- Another collection of base networking utilties for Linux using theipcommand.dhcping- A utility for checking DHCP-servers using unicast packages.ethtool- A utility for displaying and modifying some parameters of network interface controllers and their device drivers.mtr- MTR provides the functionality of both the ping and traceroute commands and is useful to catch intermittent issues.iftop- System monitor tool that produces a frequently updated list of network connections and bandwidth usage.ctop- Ctop provides a concise and condensed overview of real-time metrics for multiple containers.curl- A command-line tool for transferring data using various network protocols.
Configuration Environment Variables
SIDECAR_RUN_MODE- The run mode the container will run in. Options are:SSH_KEYandSLEEPER. If passingSSH_KEYmake sure to also pass theSIDECAR_KEY_STRenvironment variable.SIDECAR_KEY_STR- The public key line(s) to be injected into theauthorized_keysfile before starting SSH. It is strongly recommended that you pass this using a secret.…
Description from the Docker Hub listing.
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Pulls on a linear scale. Placement is projected from pulls, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar Docker Hub plugins
All 20 amazon/amazon-ecs-network-sidecar alternativesData source
Cumulative pull counts and stars come from the public Docker Hub API. Pulls count image downloads (including automated CI pulls), not installs or users.
Listing: https://hub.docker.com/r/amazon/amazon-ecs-network-sidecar. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.