title: Clickhouse Client - Code: 62. DB::Exception: Empty query
body: <p>I'm trying to run <code>clickhouse-server</code> and <code>clickhouse-client</code> services using <strong>Docker</strong> and <strong>Docker Compose</strong>. Based on <a href="https://github.com/ClickHouse/ClickHouse/blob/master/docker-compose.yml" rel="nofollow noreferrer">clickhouse docker-compose file</a> and <a href="https://github.com/rongfengliang/clickhouse-docker-compose/blob/master/docker-compose.yaml" rel="nofollow noreferrer">another compose sample</a>, I created the services in my <code>docker-compose.yml</code> file as you can see below:</p>
  <p><strong>docker-compose.yml:</strong></p>
  <pre class="lang-yaml prettyprint-override"><code>    ch_server:
        container_name: myapp_ch_server
        image: yandex/clickhouse-server
        ports:
          - &quot;8181:8123&quot;
          - &quot;9000:9000&quot;
          - &quot;9009:9009&quot;
        ulimits:
          nproc: 65535
          nofile:
            soft: 262144
            hard: 262144
        volumes: 
          - ./ch_db_data:/var/lib/clickhouse/
          - ./ch_db_logs:/val/log/clickhouse-server/
        networks:
          - myapp-network
  
      ch_client:
        container_name: myapp_ch_client
        image: yandex/clickhouse-client
        command: ['--host', 'ch_server']
        networks:
          - myapp-network
  </code></pre>
  <p>When I run <code>docker-compose up</code> command, the following exception occurs from <code>clickhouse-client</code> service:</p>
  <pre class="lang-sh prettyprint-override"><code>myapp_ch_client | Code: 62. DB::Exception: Empty query
  myapp_ch_client exited with code 62
  </code></pre>
  <p>Do you have any idea how to fix this error?</p>