ML-TANGO / TANGO

public repo for TANGO (Target Aware No-code neural network Generation and Operation framework)
Other
68 stars 20 forks source link

code_gen container: its shared volume may not be shared with others #142

Closed HyunwooCho closed 6 months ago

HyunwooCho commented 6 months ago

I'm not sure how docker volume could be shared between multiple containers. But I noticed that the container 'code_gen' might use different volumes, not shared with others.

All other containers share a docker volume named "shared" to /shared. But code_gen container has the same named volume "shared" to /tango.

  #---------------------------------
  # code_gen Build
  #---------------------------------
  code_gen:
    build:
      context: ./deploy_codegen/optimize_codegen
    hostname: codeGen
    volumes:
      - ./deploy_codegen/optimize_codegen:/source
      - shared:/tango
    command: >
      sh -c "cd /app && python3 code_gen.py"
    ports:
      - 8888:8888
ML-TANGO commented 6 months ago

From shared:/tango, shared is docker volume name shared among containers but /tango is the mounting point name within the code_gen container. /tango is like an alias for the docker shared volume shared within the container. Hence, usage of shared:/tango is no problem for data sharing among the containers.

Reference:

HyunwooCho commented 6 months ago

OK, thanks for clearing it. Issue closes.