After merge, will make consistent with logic of previous function and also condense this to:
```ruby
return new_resource.socket_template unless new_resource.socket_template.nil?
'docker-container.socket.erb'
```