{
"info": {
"count": 51,
"pages": 3,
"next": "https://rickandmortyapi.com/api/episode?page=2",
"prev": null
},
"results": [
{
"id": 1,
"name": "Pilot",
"air_date": "December 2, 2013",
"episode": "S01E01",
"characters": [
"https://rickandmortyapi.com/api/character/1",
"https://rickandmortyapi.com/api/character/2",
//...
],
"url": "https://rickandmortyapi.com/api/episode/1",
"created": "2017-11-10T12:56:33.798Z"
},
// ...
]
}
public class Answer {
private Info info;
private Episode[] results;
}
pi@raspberrypi:~ $ ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether dc:a6:32:53:01:d7 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DORMANT group default qlen 1000
link/ether dc:a6:32:53:01:d8 brd ff:ff:ff:ff:ff:ff
pi@raspberrypi:~ $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether dc:a6:32:53:01:d7 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.69/24 brd 192.168.0.255 scope global noprefixroute eth0
valid_lft forever preferred_lft forever
inet6 fe80::8cbb:d1f7:ccb6:d1e0/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether dc:a6:32:53:01:d8 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.57/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
valid_lft 25126sec preferred_lft 21976sec
inet6 fe80::c2cf:43d0:9884:8e2d/64 scope link
valid_lft forever preferred_lft forever
pi@raspberrypi:~ $ ip r
default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.57 metric 303
192.168.0.0/24 dev eth0 proto dhcp scope link src 192.168.0.69 metric 202
192.168.1.0/24 dev wlan0 proto dhcp scope link src 192.168.1.57 metric 303
pi@raspberrypi:~ $ ip ne
192.168.1.54 dev wlan0 lladdr 30:24:a9:5b:43:cd REACHABLE
192.168.0.70 dev eth0 lladdr 2c:6f:51:13:75:4e STALE
192.168.1.62 dev wlan0 lladdr 48:b0:2d:36:41:15 REACHABLE
192.168.1.1 dev wlan0 lladdr 50:ff:20:22:ee:f2 REACHABLE
fe80::52ff:20ff:fe22:eef2 dev wlan0 lladdr 50:ff:20:22:ee:f2 router REACHABLE
pi@raspberrypi:~ $ ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether dc:a6:32:53:01:d7 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DORMANT group default qlen 1000
link/ether dc:a6:32:53:01:d8 brd ff:ff:ff:ff:ff:ff
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:10:1f:00:00 brd ff:ff:ff:ff:ff:ff
pi@raspberrypi:~ $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether dc:a6:32:53:01:d7 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.69/24 brd 192.168.0.255 scope global noprefixroute eth0
valid_lft forever preferred_lft forever
inet6 fe80::8cbb:d1f7:ccb6:d1e0/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether dc:a6:32:53:01:d8 brd ff:ff:ff:ff:ff:ff
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1e:10:1f:00:00 brd ff:ff:ff:ff:ff:ff
inet 192.168.8.107/24 brd 192.168.8.255 scope global dynamic noprefixroute eth1
valid_lft 86285sec preferred_lft 75485sec
inet6 fe80::f7e6:57f8:e96d:a207/64 scope link
valid_lft forever preferred_lft forever
pi@raspberrypi:~ $ ip r
default via 192.168.8.1 dev eth1 proto dhcp src 192.168.8.107 metric 204
192.168.0.0/24 dev eth0 proto dhcp scope link src 192.168.0.69 metric 202
192.168.8.0/24 dev eth1 proto dhcp scope link src 192.168.8.107 metric 204
pi@raspberrypi:~ $ ip ne
192.168.0.70 dev eth0 lladdr 2c:6f:51:13:75:4e STALE
192.168.8.1 dev eth1 lladdr 00:10:20:30:40:50 STALE
fe80::210:20ff:fe30:4050 dev eth1 lladdr 00:10:20:30:40:50 router REACHABLE
pi@raspberrypi:~ $ rpi@raspberrypi:~ $ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 303 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 202 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 303 0 0 wlan0
pi@raspberrypi:~ $ sudo ip route del default
pi@raspberrypi:~ $ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 303 0 0 wlan0
pi@raspberrypi:~ $
pi@raspberrypi:~ $ ip rout show
default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.57 metric 303
192.168.1.0/24 dev eth0 proto dhcp scope link src 192.168.1.54 metric 202
192.168.1.0/24 dev wlan0 proto dhcp scope link src 192.168.1.57 metric 303
interface eth0
static ip_address=192.168.1.54
Спасибо, попробовал, но к сожалению не помогло. Ощущение, что какая-то проблема в Docker, а точнее в резолвинге имен внутри него, такой вывод сделал на основе следующих фактов:
1. Принудительное выставление dns в docke-compose.yaml никак не меняет /etc/resolv.conf внутри контейнера
2. Указание DNS сервера в /etc/docker/daemon.json тоже игнорируется
3. Так же логи докера говорят о наличии ошибки резолвинга