skip to Main Content

Project in container A and has a function to restore data,which may need to send files to container B
Or I should not do like this?

2

Answers


  1. Try using docker-compose and a shared volume between your containers.

    Login or Signup to reply.
  2. try using volume option when you run container A & B

    docker run -t imagename:tag -v 'data path shared on local': path data on container A container A

    docker run -t imagename:tag -v 'data path shared on local': path data on container B container B

    when restore new file in container A in access in path local and container B could used it

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search