[email protected]:whohoo/docker.gitcd ./vsftpd./config/users.txt add your ftp username and password./docker-compose.yml add your ftp local path in volumesdocker-compose up -d --buildWhen first run the container, it would genrate a vsftpd.conf file in ./config/ folder. You can change your vsfptd's configuration and dont' forget to restart the container.
./config/users.txtftp_name:ftp_password:/path_in_container:uid:gid
ftp_name: the ftp user name (required)ftp_password: the ftp user password (required)/path_in_container: opional, if not specify, the default value is /home/${ftp_name}uid: optional, your can specify the user's uid, the uid should be unique.gid: optional, your can specify the group's gid. the default value is 100 [users group]docker-compose exec vsftpd passwd -l XXXXX
XXXXX should be replace with your ftp_name
docker-compose exec vsftpd passwd -u XXXXX
Sometime it can't fetch anything, when run apk add in Apline. In that case, you need change ./Dcokerfile file. please see below:
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk add --no-cache vsftpd \
&& ...
Content type
Image
Digest
Size
3 MB
Last updated
almost 6 years ago
docker pull whohoo/vsftpd