In the docker cp-kafka-connect image 5.5.2 the /etc/apt/sources.list contains duplicate entries which make apt-get update fail, complaining about the duplicate lines :
deb [arch=amd64] https://s3-us-west-2.amazonaws.com/staging-confluent-packages-5.5.2/deb/5.5 stable main
deb [arch=amd64] https://s3-us-west-2.amazonaws.com/staging-confluent-packages-5.5.2/deb/5.5 stable main
deb [arch=amd64] https://s3-us-west-2.amazonaws.com/staging-confluent-packages-5.5.2/deb/5.5 stable main
Workaround in my Dockerfile to remove the duplicate entries :
cd /etc/apt/
// See : https://www.gnu.org/software/coreutils/manual/html_node/uniq-invocation.html#uniq-invocation
uniq sources.list sources.list.fixed
mv sources.list.fixed sources.list
In the docker cp-kafka-connect image 5.5.2 the
/etc/apt/sources.list
contains duplicate entries which makeapt-get update
fail, complaining about the duplicate lines :Workaround in my Dockerfile to remove the duplicate entries :