Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

nginx - docker command over SSH from bamboo task

In a Bamboo server one can setup a Deployment Plan and execute a command with an "SSH Task". Im trying to get bamboo to run a docker command but the log just states

sh: docker: command not found

The specific command that I am trying to run is to verify a nginx configuration:

docker exec -it nginx nginx -t

most likely not the best practices but I'm learning (a plan has copied all the configurations into a docker volume, so I just want to run a extra check before reloading the configs on nginx).

question from:https://stackoverflow.com/questions/65876117/docker-command-over-ssh-from-bamboo-task

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...