# Docker SSH Container Passthrough with different volume

**URL:** <https://forum.gitea.com/t/docker-ssh-container-passthrough-with-different-volume/1842>\
**Category:** Install/Maintain/Configure\
**Created:** [January 25, 2020, 8:53am UTC](https://forum.gitea.com/t/docker-ssh-container-passthrough-with-different-volume/1842 "2020-01-25T08:53:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![junpet](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@junpet](https://forum.gitea.com/u/junpet)\
**Post date:** [January 25, 2020, 8:53am UTC](https://forum.gitea.com/t/docker-ssh-container-passthrough-with-different-volume/1842/1 "2020-01-25T08:53:05Z")

</div>

I’m trying to set up Gitea in Docker [using SSH Container Passthrough](https://docs.gitea.io/en-us/install-with-docker/#ssh-container-passthrough).

There’s one problem. I don’t want to use the `/var/lib/gitea` folder as the data volume. If I use this folder, everything works. But I have a dedicated folder, where I store all of the volumes: `/home/myuser/docker/volumes`  
I’ve created a `gitea` folder here. I made `git` user as the owner and I replaced `/var/lib/gitea` with `/home/myuser/docker/volumes/gitea` where it was needed in the rest of the process.  
Now the problem is that, when I’d like to use SSH (like `git push` to my Gitea) I got `Permission denied, please try again.`. Everything the same, I just replaced the volume folder. I’ve tried multiple times.

Could you help me what am I missing? I repeat myself: I don’t want to use `/var/lib` folder to store my Gite volume, I want to store it where the rest of the volumes are.

Thanks!
