简体   繁体   中英

How install the Amazon ECS Container Agent in Debian? (ecs-init)

I have a ec2 instance with Debian jessie and when I'm doing this command :

apt-get install ecs-init

I receive a error package not found..

So I need add new depo on my Debian ?

It did not work for me : http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-install.html

thx.

amazon-ecs-init

ecs-init is a RPM package shipped with Amazon Linux by default, and I think could be easily ported to other RPM-powered Linux distributions, such as RedHat Linux, CentOS, Fedora, and etc. To run Amazon ECS container agent on non-RPM-powered systems, you can instead run a docker container of amazon/amazon-ecs-agent . Refer to the section To install the Amazon ECS container agent on a non-Amazon Linux EC2 instance from the lower part of Installing the Amazon ECS Container Agent for more details

Below is an example, copy-and-paste from Installing the Amazon ECS Container Agent , of how to run a amazon-ecs-agent instance

ubuntu:~$ sudo docker run --name ecs-agent \
--detach=true \
--restart=on-failure:10 \
--volume=/var/run/docker.sock:/var/run/docker.sock \
--volume=/var/log/ecs/:/log \
--volume=/var/lib/ecs/data:/data \
--volume=/sys/fs/cgroup:/sys/fs/cgroup:ro \
--volume=/var/run/docker/execdriver/native:/var/lib/docker/execdriver/native:ro \
--publish=127.0.0.1:51678:51678 \
--env=ECS_LOGFILE=/log/ecs-agent.log \
--env=ECS_LOGLEVEL=info \
--env=ECS_DATADIR=/data \
--env=ECS_CLUSTER=cluster_name \
amazon/amazon-ecs-agent:latest

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM