Skip to content

Cannot install resolvconf on Ubuntu 12.04 containers #1297

@sridatta

Description

@sridatta

Docker currently bind-mounts to the container's /etc/resolv.conf. This causes problems when installing utilities such as resolvconf/dnsmasq/dhcpd, because /etc/resolv.conf needs to overwritable. Here's the output when trying to run resolvconf:

lsattr: Inappropriate ioctl for device While reading flags on /etc/resolv.conf
ln: cannot remove `/etc/resolv.conf: Device or resource busy

However, /etc/resolv.conf is a sensible default location. Can we instead make the mount location configurable?

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