diff --git a/bin/compose-core b/bin/compose-core index fb1636b..72fcd1e 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -3969,7 +3969,7 @@ if [ "$is_docker_compose_action" -a "${#services_args[@]}" -gt 0 ]; then services=($(get_master_services "${services_args[@]}")) || exit 1 if [ "$action" == "up" ]; then ## remove run-once - for service in "${services_args[@]}"; do + for service in $(get_ordered_service_dependencies "${services_args[@]}"); do type="$(get_service_type "$service")" || exit 1 if [ "$type" != "run-once" ]; then action_posargs+=("$service")