本人电脑mac,m1芯片,新手入门docker。在使用docker拉去ros:noetic时,dockerfile文件如下
FROM ros:noetic-ros-base
# Set the environment variables to prevent interactive prompts during installation
ENV DEBIAN_FRONTEND=noninteractive
# Update the package list and install required packages
RUN apt-get update && apt-get install -y \
python3-osrf-pycommon \
python3-catkin-tools \
ros-noetic-rviz \
ros-noetic-gazebo-ros-pkgs
# Create a catkin workspace
RUN mkdir -p /catkin_ws/src && \
cd /catkin_ws && \
catkin_make
# Source the workspace setup.bash file
RUN echo "source /catkin_ws/devel/setup.bash" >> /root/.bashrc
随后执行(base) docker build -t ros-noetic-arm64 .
报错代码如下
> [3/4] RUN mkdir -p /catkin_ws/src && cd /catkin_ws && catkin_make:
0.127 /bin/sh: 1: catkin_make: not found
------
Dockerfile:14
--------------------
13 | # Create a catkin workspace
14 | >>> RUN mkdir -p /catkin_ws/src && \
15 | >>> cd /catkin_ws && \
16 | >>> catkin_make
17 |
--------------------
ERROR: failed to solve: process "/bin/sh -c mkdir -p /catkin_ws/src && cd /catkin_ws && catkin_make" did not complete successfully: exit code: 127
这是什么原因,我该如何修改,感谢