How-to stop and remove old Docker images running RNode  

  RSS

Kelly
(@kelly)
Member Admin
Joined:9 months  ago
Posts: 5
29/03/2018 3:43 pm  

It is a best practice to stop and remove containers running older versions of RNode and update to the most current version.

How to remove stopped containers

Command to remove all stopped dockers

docker rm $(docker ps -a -q)

If you receive a message like this:

'Error response from daemon: You cannot remove a running container 16f29fc8cb080a58b9f92b6aa19af0e446a1ba496110ba1efcb67b681dbb7eef. Stop the container before attempting removal or force remove'

Then run:

Docker kill 'node id'

Where 'node id' in the above example is:

16f29fc8cb080a58b9f92b6aa19af0e446a1ba496110ba1efcb67b681dbb7eef

Run this for each of the nodes showing in the error message. Then re-run the rm command again.

Pull a new Docker image with the latest version of RNode

Find the latest version of RNode at  https://developer.rchain.coop


ReplyQuote
Jake Gillberg
(@jake-gillberg)
New Member
Joined:8 months  ago
Posts: 2
10/04/2018 11:38 pm  

To stop all running containers, you can do a <pre>docker stop $(docker ps -aq)</pre>. To delete all images and containers you can use a <pre>docker system prune -a</pre>. And if you want to delete all volumes too, include a <pre>--volumes</pre> arg.


ReplyQuote
  
Working

Please Login or Register