FTP to existing Docker containers

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!

+4
source share
2 answers

You have several options:

  • run ftp in the ghost container and open the port
  • - FTP ( )
  • Ghost, FTP-

, , , . , , , , FTP Ghost.

+4

, "" 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
+1

All Articles