Skip to content

Error on updating hosts file (ubuntu 20) #10

@AndroiDjo

Description

@AndroiDjo

When i run command
docker run -d \ -v /var/run/docker.sock:/tmp/docker.sock \ -v /etc/hosts:/tmp/hosts \ dvdarias/docker-hoster
got error
Traceback (most recent call last): File "hoster.py", line 135, in <module> main() File "hoster.py", line 38, in main update_hosts_file() File "hoster.py", line 107, in update_hosts_file while lines[-1].strip()=="": lines.pop() IndexError: list index out of range
and file /etc/hosts is empty.

My system is Ubuntu 20.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions