# How to check if volumed data is outside of Docker container?

**URL:** <https://forum.gitea.com/t/how-to-check-if-volumed-data-is-outside-of-docker-container/6262>\
**Category:** Install/Maintain/Configure\
**Created:** [November 15, 2022, 5:16pm UTC](https://forum.gitea.com/t/how-to-check-if-volumed-data-is-outside-of-docker-container/6262 "2022-11-15T17:16:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![purveyor](https://avatars.discourse-cdn.com/v4/letter/p/8797f3/32.png) [@purveyor](https://forum.gitea.com/u/purveyor)\
**Post date:** [November 15, 2022, 5:16pm UTC](https://forum.gitea.com/t/how-to-check-if-volumed-data-is-outside-of-docker-container/6262/1 "2022-11-15T17:16:40Z")

</div>

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** ❗❗](https://docs.gitea.io/en-us/install-with-docker/#upgrading)

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:

```auto
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](https://linuxhint.com/docker_volume_share_data/), I found out that I have the following volume:

```auto
aa@bb:~/docker/gitea$ sudo docker volume list
DRIVER VOLUME NAME
local b49a906597a143a6c7ef4deca1ecc5d15e1872b9fab54782de573a8beb6af4b

```

```auto
$ 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"
    }
]

```
