Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
505 views
in Technique[技术] by (71.8m points)

linux - Error with ftp volumes in Docker for Windows

I have a Docker compose file

  version: "3.4"
services:
  ftp:
    image: atmoz/sftp
    ports:
      - "2222-2225:22"
    volumes:
      - ./data:/home/foo/CUIS/
    command: "foo:bar:1003"
  store:
    image: postgis/postgis
    environment:
      POSTGRES_USER: 'user'
      POSTGRES_PASSWORD: 'password'
      POSTGRES_DB: 'pdap'
    ports:
      - 5432:5432

This runs fine on a Linux system, but when I run it on my Windows Machine, I get this error

2020-12-30 12:04:57,919 [INFO] [sftp] :: checking path /CUIS/IQUO/quotes/ on server1
2020-12-30 12:04:59,078 [ERROR] [__main__] :: Could not complete file fetch (reason [Errno 2] No such file)

Does Anyone know why this is happening, I have attached screenshots for both the outputs (Linux and Windows)

Windows Error Linux (Successful)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...