教程参照https://alibaba.github.io/arthas/arthas-tutorials
mkdir /opt/downloads -p
mkdir /opt/arthas -p
下载地址参照https://github.com/alibaba/arthas/releases
wget -P /opt/downloads https://github.com/alibaba/arthas/releases/download/arthas-all-3.1.4/arthas-3.1.4-bin.zip
unzip -o /opt/downloads/arthas-3.1.4-bin.zip -d /opt/arthas/
docker cp /opt/arthas/ <container_name>:/opt/
docker exec -it <container_name> /bin/bash 或 docker exec -it --user root <container_name> /bin/bash
进入docker后
cd /opt/arthas
java -jar arthas-boot.jar 或 java -jar /opt/arthas/arthas-boot.jar