Skip to content

Magic IP not so magic #4

@u6zk6

Description

@u6zk6

This so-called magic IP which is referenced in chapter 3 almost derailed me from finishing your book. I run native Ubuntu 16.04 and docker seems to assigna unique IP to each container, and it doesn't begin with 172.17.0.n.

So not only could I not use 172.17.0.1 anywhere, in nearly every place where it was used in the chapter 3 examples, I had to replace it with another IP address unique for the database or application-server container. What the book should have contained is how to find out which IP address that each container is assigned using for example the command.

$ sudo iptables -t nat -L -n

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions