CodeAnalysis
CodeAnalysis copied to clipboard
Deploy tca docker failed,返回码=127,什么原因?
$ bash ./quick_install.sh docker deploy
[2024/06/27 10:50:20] [WARN]: This machine had installed git lfs
[2024/06/27 10:50:21] [INFO]: start git clone lib ...
Cloning into 'tca_lib'...
remote: Total 179 (delta 0), reused 179 (delta 0)
Receiving objects: 100% (179/179), 24.12 KiB | 4.02 MiB/s, done.
Resolving deltas: 100% (2/2), done.
Updating files: 100% (158/158), done.
Filtering content: 100% (157/157), 108.35 MiB | 7.24 MiB/s, done.
[2024/06/27 10:50:42] [INFO]: Download lib success.
md5sum: /d/code/CodeAnalysis/.gitattributes: No such file or directory
[2024/06/27 10:50:43] [INFO]: update lib: .gitattributes
[2024/06/27 10:51:59] [INFO]: ===========================================================
[2024/06/27 10:51:59] [INFO]: _______ _____
[2024/06/27 10:51:59] [INFO]: |__ __| / | /
[2024/06/27 10:51:59] [INFO]: | | | | /
[2024/06/27 10:52:00] [INFO]: | | | | / /\
[2024/06/27 10:52:00] [INFO]: | | | | / ____
[2024/06/27 10:52:00] [INFO]: || ___| // _
[2024/06/27 10:52:00] [INFO]:
[2024/06/27 10:52:00] [INFO]: ===========================================================
[2024/06/27 10:52:00] [INFO]: Start tca using docker
[2024/06/27 10:52:00] [WARN]: Deploying TCA with docker/docker-compose depends on docker. Current machine has not installed docker.
[2024/06/27 10:52:00] [INFO]: Do you want to install [Docker] by this script?
Please enter:[Y/N]Y
[2024/06/27 10:52:07] [INFO]: Download docker and install
curl: (28) Failed to connect to get.docker.com port 443 after 21053 ms: Couldn't connect to server
sh: /tmp/get-docker.sh: No such file or directory
rm: cannot remove '/tmp/get-docker.sh': No such file or directory
false
[2024/06/27 10:52:29] [INFO]: Deploy tca container
[2024/06/27 10:52:29] [INFO]: Pull TCA Image: tencenttca/tca:latest
[2024/06/27 10:52:29] [INFO]: Deploy tca container command:
- docker run -it --env TCA_INIT_DATA=true --name tca-services --publish 80:80 --publish 8000:8000 --publish 9001:9001 -v /d/code/CodeAnalysis/.docker_temp/logs/:/var/log/tca/ -v /d/code/CodeAnalysis/.docker_temp/data/:/var/opt/tca/ -v /d/code/CodeAnalysis/.docker_temp/configs/:/etc/tca/ tencenttca/tca:latest /d/code/CodeAnalysis/scripts/deploy/tca_docker.sh: line 45: docker: command not found
- ret=127
- set +x
这里看起来是脚本尝试安装docker失败了,可以先手动在服务器安装docker