I'm looking, can I somehow FTP into an existing Docker container? For example, I use dockerfile / ghost in combination with jwilder / nginx-proxy , and as soon as I expand / create the container, I would like the user to be able to FTP into the container running Ghost so that they can upload additional files such like themes, style sheets, etc. What would be the best way to do this? Thanks in advance!
You have several options:
, , , . , , , , FTP Ghost.
, "" ftp- (- https://github.com/gizur/docker-ftpserver) , .
2 docker-compose.yml https://docs.docker.com/compose/compose-file/#volume-configuration-reference
docker-compose.yml :
version: '2' services: ghost: build: context: ./ghost ports: - "80:80" - "443:443" volumes: - "ftpsharevolume:/mnt/ftp" depends_on: - ftp ftp: image: someftpdockerimage volumes: - "ftpsharevolume:/srv/ftp" ports: - "21:21" - "20:20" volumes: ftpsharevolume: driver: local