[Groonga-commit] ranguba/chupa-text-docker at bfab6be [master] Remove image manually

Back to archive index
Sutou Kouhei null+****@clear*****
Wed Jun 12 12:31:25 JST 2019


Sutou Kouhei	2019-06-12 12:31:25 +0900 (Wed, 12 Jun 2019)

  Revision: bfab6be237c08300c72985336f8faa5f33a07760
  https://github.com/ranguba/chupa-text-docker/commit/bfab6be237c08300c72985336f8faa5f33a07760

  Message:
    Remove image manually

  Modified files:
    etc/rc.d/init.d/chupa-text

  Modified: etc/rc.d/init.d/chupa-text (+4 -2)
===================================================================
--- etc/rc.d/init.d/chupa-text    2019-06-12 12:21:58 +0900 (e1d84f0)
+++ etc/rc.d/init.d/chupa-text    2019-06-12 12:31:25 +0900 (f4a10ea)
@@ -27,7 +27,6 @@ start() {
     docker run \
 	   --name $prog \
 	   --detach \
-	   --rm \
 	   --publish 127.0.0.1:20080:3000 \
 	   groonga/chupa-text:debian-latest
     RETVAL=$?
@@ -41,7 +40,10 @@ stop() {
     docker kill $prog
     RETVAL=$?
     echo
-    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
+    if [ $RETVAL -eq 0 ]; then
+        docker rm $prog
+        rm -f /var/lock/subsys/$prog
+    fi
     return $RETVAL
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190612/adfd8b57/attachment.html>


More information about the Groonga-commit mailing list
Back to archive index