Docker and symlinks
问题 I've got a repo set up like this: /config config.json /worker-a Dockerfile <symlink to config.json> /code /worker-b Dockerfile <symlink to config.json> /code However, building the images fails, because Docker can't handle the symlinks. I should mention my project is far more complicated than this, so restructuring directories isn't a great option. How do I deal with this situation? 回答1: Docker doesn't support symlinking files outside the build context. Some different methods for using a