anchor.diff:    echo ${CONTAINER_NAMES[$1]}
   }
   
  +function get_container_id {
  +  #Try to get ID from container short name first
  +  id=$(${DOCKER} inspect -f='{{.ID}}' ${CONTAINER_NAMES[$1]} 2>/dev/null)
  +  if [ -z "$id" ]; then
  +     #Try to get ID short ID, long ID, or container name
  +     id=$(${DOCKER} inspect -f='{{.ID}}' "$1")
  +     if [ -z "$id" ]; then
  +       echo "Could not get docker ID for container $1. Is it running?" 1>&2
  +       return 1
  +     fi
  +  fi
  +  echo "$id"
  +}
   function container_created {
     ${DOCKER} ps -a | grep -q $1
     return $?
  
positive.code:   fi
    lxc-attach --name "$id" -- "${command[@]}"
  }
  function stop_container {
    if [[ "$1" == 'all' ]]; then
      ${DOCKER} stop ${CONTAINER_NAMES[$1]}
  
negative.code: }
  
  function shell_container {
    id=$(get_container_id "$1")
    if [ $? -ne 0 ]; then
      echo "Could not get docker ID for $container. Is it running?" 1>&2
      return 1
    fi
    if [ -z "$2" ]; then
      command="/bin/bash"
  