Advertisement
Guest User

Untitled

a guest
Sep 24th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. container_id=$(docker ps -f "name=ui" -q)
  2. if [ -z "${container_id}" ]; then
  3.      echo "No dlt Container found for ordering service 2"
  4.  else
  5.      echo "dlt container found. ID=${container_id}"
  6.      echo "Copying new files folder from current folder to /usr/src/app/"
  7.      docker cp $PWD/. ${container_id}:/usr/src/app/
  8.      echo "Succefully Copied all files"
  9.      echo "----------------------------------------------------"
  10.  fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement