Docker Community Forums

Share and learn in the Docker community.

Packaging AWS CloudWatch agent into docker

docker
aws

(Tradbot) #1

I am trying to package AWS CloudWatch agent into docker container. The docker build runs into the following error -

Failed to connect to bus: No such file or directory
unknown init system

Here is the snippet from Dockerfile -

FROM ubuntu:16.04
RUN \
    apt-get -y update && \
    apt-get -y install wget && \
    apt-get -y install unzip
RUN \
    wget https://s3.amazonaws.com/amazoncloudwatch-agent/linux/amd64/latest/AmazonCloudWatchAgent.zip && \
    unzip AmazonCloudWatchAgent.zip && \
    ./install.sh

What is missing or wrong here? Any help is appreciated. Thanks in advance!