only remove from docker if node isnt null