title: Systemd Unit is throwing an error when a docker container is being run with AWS logging driver configs
body: <p>Given below is my cloud-watch-test.service systemd unit file. I need to change the log driver on my container to be aws log driver. But some syntax error is failing to resolve.</p>
  
  <pre><code>[Unit]
  Description=My Docker Service
  After=docker.service
  Requires=docker.service
  
  [Service]
  TimeoutStartSec=0
  Restart=on-failure
  ExecStartPre=-/usr/bin/docker kill ravDocker
  ExecStartPre=-/usr/bin/docker rm -f ravDocker
  ExecStartPre=-/usr/bin/docker pull myImage:latest
  ExecStartPre=-/bin/sh -c "/bin/docker rmi $(docker images --quiet --filter 'dangling=true')"
  ExecStart=/usr/bin/docker run --log-driver=awslogs --log-opt awslogs-region=ap-southeast-1 --log-opt awslogs-group=test --log-opt awslogs-datetime-format='\\[%b %d, %Y %H:%M:%S\\]' --log-opt tag='{{.Name}}/{{.ID}}' --net=host --name ravDocker myImage:latest
  ExecStop=/usr/bin/docker stop ravDocker
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  
  <p>Given below is my systemctl statu output,</p>
  
  <pre><code>/etc/systemd/system/cloud-watch-test.service:13: Failed to resolve unit specifiers on awslogs-datetime-format=\[%b %d, %Y %H:%M:%S\]:
  </code></pre>
  
  <p>Note: When I run this straightly as a docker command it works fine. Any help is appreciated.</p>