dockerstart 958 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. # Copyright © 2021 Jeffrey Cliff
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or (at
  7. # your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. docker stop "at-"$1
  17. docker rm "at-"$1
  18. docker pull atdr.meo.ws/archiveteam/$1-grab:latest
  19. # docker container update "/at-"$1
  20. docker container rm "/at-"$1
  21. docker run --detach --name "at-"$1 --restart always atdr.meo.ws/archiveteam/$1-grab:latest --concurrent 20 themusicgod1