While deploying a custom image using Violet, it is observed that if the image was built without iproute package, then the containers won't start and deployment will be unsuccessful. The ip command is used in various places in the deployment script and its absence fails the deployment.
|
command = "sudo docker exec -i {0} ip a | grep {1} | awk '{{print $2}} {{print $7}}'".format(gw,ip_range) |
One solution to the problem is to have the package available in the docker image by adding the following line in the Dockerfile
RUN yum install -y iproute