@sdetweil
thanx. I have put into container RUN command direct links
--volume /home/pi/magic_mirror/config
instead of relative ones
--volume ~/magic_mirror/config
So the RUN command looked like:
docker run -d \
--publish 80:8080 \
--restart always \
--volume /home/pi/magic_mirror/config:/opt/magic_mirror/config \
--volume /home/pi/magic_mirror/modules:/opt/magic_mirror/modules \
--name magic_mirror \
bastilimbach/docker-magicmirror:raspberry
I also changed config, as I understood I should wrote port 80 there, so m,y config.js is the following:
var config = {
address: "0.0.0.0", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "", "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out, is "localhost"
port: 80,
ipWhitelist: [], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
if (typeof module !== "undefined") { module.exports = config; }
language: "en",
timeFormat: 24,
units: "metric",
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
// OTHER MODULES CONFIGURATIONS DELETED HERE FOR SIMPLICITY
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
I have did once more all the steps
Here is log from terminal
pi@raspberrypi:/ $ docker run -d \
> --publish 80:8080 \
> --restart always \
> --volume /home/pi/magic_mirror/config:/opt/magic_mirror/config \
> --volume /home/pi/magic_mirror/modules:/opt/magic_mirror/modules \
> --name magic_mirror \
> bastilimbach/docker-magicmirror:raspberry
37638fe6e1d0dee6b3ff9973c8ec7e2c7d6b0fa71b4c095e94738b197387074e
pi@raspberrypi:/ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
37638fe6e1d0 bastilimbach/docker-magicmirror:raspberry "/opt/docker-entrypo…" 11 seconds ago Up 7 seconds 0.0.0.0:80->8080/tcp magic_mirror
pi@raspberrypi:/ $ cd /home/pi/magic_mirror/config
pi@raspberrypi:~/magic_mirror/config $ sudo nano config.js
pi@raspberrypi:~/magic_mirror/config $ cd /
pi@raspberrypi:/ $ ifconfig
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
inet6 fe80::5b8a:414d:261e:c2f3 prefixlen 64 scopeid 0x20<link>
ether 02:42:cf:fa:cf:16 txqueuelen 0 (Ethernet)
RX packets 12 bytes 1601 (1.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 170 bytes 28294 (27.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:fd:40:7d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth2d3c6a7: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.32.50 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::ef51:3415:a096:b052 prefixlen 64 scopeid 0x20<link>
ether 9a:4f:36:79:b3:72 txqueuelen 0 (Ethernet)
RX packets 4 bytes 651 (651.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 127 bytes 19147 (18.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.43.78 netmask 255.255.255.0 broadcast 192.168.43.255
inet6 fe80::fff4:43e5:edc6:cc9e prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:a8:15:28 txqueuelen 1000 (Ethernet)
RX packets 13597 bytes 14840294 (14.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 11414 bytes 1524830 (1.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
pi@raspberrypi:/ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
37638fe6e1d0 bastilimbach/docker-magicmirror:raspberry "/opt/docker-entrypo…" About a minute ago Up About a minute 0.0.0.0:80->8080/tcp magic_mirror
pi@raspberrypi:/ $
When I trying to reach through
localhost:80, 127.0.0.1:80 the browser returns
This site can’t be reached The connection was reset.Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_RESET
When I am trying to reach through the address
localhost:8080, 127.0.0.1:8080
This site can’t be reached 127.0.0.1 refused to connect.
Try: Checking the connection, Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
So the errors are different (connection is reset and refused, respectively).
What else should I check , @sdetweil could you please advice me?