Skip to content

docker run -t flag conflicts with background execution in watod-bag.sh #318

@jaffarkeikei

Description

@jaffarkeikei

Location: watod_scripts/watod-bag.sh:109

The script uses docker run -t (allocate TTY) but runs the container in background:

docker run --rm -t \
  # ... other flags ...
  "$INFRASTRUCTURE_IMAGE:$TAG" \
  ros2 bag "${ros2_bag_args[@]}" &

wait $!

Issue: -t expects interactive terminal but container runs in background, causing potential issues with signal handling and output buffering.

Fix: Remove -t since container runs non-interactively:

docker run --rm \
  --ulimit memlock=-1 \
  # ... rest of flags

Impact: Can cause hang-ups during Ctrl+C or unexpected behavior with ROS2 bag recording output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions