Cannot git clone ardupilot

hello my name andreas from Indonesia.

So I want to create an autonomous drone simulation, with ROS, Ardupilot, and Gazebo in docker, after I create the ROS container, when running:

sudo apt install git
git clone https://github.com/ArduPilot/ardupilot.git
cd ardupilot
git checkout Copter-3.6
git submodule update --init --recursive

I get a failure message:

fatal: clone of ‘git://github.com/mavlink/c_library.git’ into submodule path ‘/ardupilot/modules/PX4Firmware/mavlink/include/mavlink/v1.0’ failed
Failed to clone ‘mavlink/include/mavlink/v1.0’ a second time, aborting
Failed to recurse into submodule path ‘modules/PX4Firmware’
Failed to recurse into submodule path ‘modules/PX4Firmware’

what is the solution, and please advise and opinions for my project

I don’t think the problem relates to Docker at all, you’ll find better assistance in forums directed at GIT, such as r/git, GitHub Community, etc.

I tried cloning and am also experiencing this problem, have you tried changing the git configuration to use https:// instead of git://?