Skip to content

Docker container not starting due to missing package iproute #67

@skmonga

Description

@skmonga

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions