Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map volumes not mounted #15583

Open
xudooo opened this issue Nov 15, 2024 · 0 comments
Open

map volumes not mounted #15583

xudooo opened this issue Nov 15, 2024 · 0 comments

Comments

@xudooo
Copy link

xudooo commented Nov 15, 2024

Describe the bug
map volumes not mounted

To Reproduce
Steps to reproduce the behavior:

  1. ./docker/scripts/dev_start.sh
  2. ./docker/scripts/dev_into.sh
  3. ls modules/map/data/sunnyvale
  4. nothing listed, and no map showed in Dreamview
    image

Expected behavior
some map files are listed, and there is the map sunnyvale in dreamview

Additional context
we downloaded registry.baidubce.com/apolloauto/apollo:map_volume-sunnyvale-latest, but used apolloauto/apollo:map_volume-sunnyvale-latest to mount map volume, so this helps:
https://github.com/ApolloAuto/apollo/blob/master/docker/scripts/dev_start.sh#L368

--- a/docker/scripts/dev_start.sh
+++ b/docker/scripts/dev_start.sh
@@ -365,6 +365,7 @@ function docker_restart_volume() {
   info "Create volume ${volume} from image: ${image}"
   docker_pull "${image}"
   docker volume rm "${volume}" > /dev/null 2>&1
+  image=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep "${image}" | head -n 1)
   docker run -v "${volume}":"${path}" --rm "${image}" true > /dev/null
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant