The default init userdata script used with AWS VM build infra adds docker repository to apt sources(/etc/apt/sources.list.d/docker.list). This creates duplicate repository entries in the file which causes the apt update/install command to fail because we have already installed docker as a part of our AMI creation. Can you try to avoid updating the sources files if the package already exists?
Created by lijo.jacob
·