I am running Gitea via Docker, and want to upgrade. In the documentation, in the upgrade section, one can read that:
Make sure you have volumed data to somewhere outside Docker container
As I am a Docker (and Gitea) noob, I wonder how I can check if the “volumed” data is stored inside or outside the Docker container. Help would be appreciated.
My docker-compose.yml
reads:
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "443:443"
- "222:22"
- "80:80"
Using info from linuxhint.com, I found out that I have the following volume:
aa@bb:~/docker/gitea$ sudo docker volume list
DRIVER VOLUME NAME
local b49a906597a143a6c7ef4deca1ecc5d15e1872b9fab54782de573a8beb6af4b
$ sudo docker volume inspect b49ea906597a143a6c7ef4deca1ecc5d15e1872b9fab54782de573a8beb6af4b
[
{
"CreatedAt": "2022-05-04T06:46:13Z",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/b49a906597a143a6c7ef4deca1ecc5d15e1872b9fab54782de573a8beb6af4b/_data",
"Name": "b49a906597a143a6c7ef4deca1ecc5d15e1872b9fab54782de573a8beb6af4b",
"Options": null,
"Scope": "local"
}
]