Hello, developers.
I need a help. I used a variable in my pipeline script like this.
# this shell is pipeline shell script
export container_id=`docker run -d MY_CONTAINER`
then regardless of the success of result, I want to remove my container using container_id
, like this.
# this shell is global exit hook
docker rm ${docker stop $container_id}
but it do not work. What can I do for solve this problem?