Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No files available #68

Open
Bence98007 opened this issue Nov 10, 2021 · 2 comments
Open

No files available #68

Bence98007 opened this issue Nov 10, 2021 · 2 comments
Labels

Comments

@Bence98007
Copy link

Bence98007 commented Nov 10, 2021

Hi there!
Thanks for the effort creating a lightweight ftp docker image!

I just missing something, maybe permission issues?
So I created a compose file, which is the following:

version: '3.3'
services:
    vsftpd:
        volumes:
            - /var/containersdata/ftp-srv/data:/home/vsftpd
            - /var/containersdata/ftp-srv/log:/var/log/vsftpd
        ports:
            - '20:20'
            - '21:21'
            - '21100-21110:21100-21110'
        environment:
            - FTP_USER=user
            - FTP_PASS=pass
            - PASV_MIN_PORT=21100
            - PASV_MAX_PORT=21110
            - LOCAL_UMASK=0777
        container_name: ftp-srv
        restart: always
        image: fauria/vsftpd

But as I connect to the FTP server from my network (so no firewall etc) the connection is up, but I can see no files there.
I tried to create a symlink to the ftp-shared folder, and also just a txt file, but no success, nothing is shown in my ftp server.
What am I doing wrong?

@Bence98007
Copy link
Author

Nvm, I was a bit confused where should I map the volume. Looks like I need to map it to /home/vsftpd/user, not to /home/vsftpd.
How can I use symlinks? Is it possible that it will work, or the ftp is not capable of this?
Thanks!!

@alainseys
Copy link

Hi, @Bence98007

Symbolic links are a bit tricky on docker what i tent to use is mount the required files as a volume depende on the needs for example

`
volumes:

  • /opt/cert/ssl/live/github.com/cert.pem:/cert.pem

`

You can also try to add the symlink in the dockerfile with the traditional RUN command but i tend to use volumes over a sym link.

In you use case i belive you want the shared folder to your local machine correct?

@fauria fauria added the look label Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants