I’m still fairly new to docker, but I have been having some trouble upgrading from 4.6 to 5.2 all while keeping my dashboards and plugins.
on my 4.6 install, my volumes look like this:
"Mounts": [
{
"Name": "30767be620f74d2b596dfb2858f1dd6228cd82aab7399a4ae13a3851f999a423",
"Source": "/var/lib/docker/volumes/30767be620f74d2b596dfb2858f1dd6228cd82aab7399a4ae13a3851f999a423/_data",
"Destination": "/etc/grafana",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
{
"Name": "42890d8d6920fc061e3e510f8bc4a3670225f1e8d79ead0beed844af92c9a609",
"Source": "/var/lib/docker/volumes/42890d8d6920fc061e3e510f8bc4a3670225f1e8d79ead0beed844af92c9a609/_data",
"Destination": "/var/lib/grafana",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
{
"Name": "0b94d64501044d22613092e837c7377abce4d1f9fa7f375a8a76ee2172a38f62",
"Source": "/var/lib/docker/volumes/0b94d64501044d22613092e837c7377abce4d1f9fa7f375a8a76ee2172a38f62/_data",
"Destination": "/var/log/grafana",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
so when I was trying to upgrade, I was hoping to mount the volumes accordingly using this command.
docker run -d \
-p 3000:3000 \
--name=grafana \
-v 42890d8d6920fc061e3e510f8bc4a3670225f1e8d79ead0beed844af92c9a609:/var/lib/grafana \
-v 0b94d64501044d22613092e837c7377abce4d1f9fa7f375a8a76ee2172a38f62:/var/log/gra
fana \
-v 30767be620f74d2b596dfb2858f1dd6228cd82aab7399a4ae13a3851f999a423:/etc/grafana \
--user 104 \
9e623450219b /bin/bash
But it keeps exiting immediately with Exited (0)
with no logs displayed after running docker logs grafana
.
Again, Im still really new to docker - but is there something else that I’m missing?
As a side note, I have to install it using the image name (9e623450219b)
, there is a firewall that prevents it from connecting to the docker hub repository - so this image is side loaded.