<p>I have a docker-compose.yml file, which is version 2.3. (I had to change to 2 during first try with kompose). 
I tried to convert this yaml file into k8s yaml files with this cmd:</p>

<pre><code>kompose convert -f docker-compose.yml -v
</code></pre>

<p>It failed with the error: </p>

<pre><code>ERRO Could not parse config for project xxx : Cannot unmarshal '&lt;nil&gt;' to type &lt;nil&gt; into a string value 
FATA composeObject.Parse() failed, Failed to load compose file: Cannot unmarshal '&lt;nil&gt;' to type &lt;nil&gt; into a string value
</code></pre>

<p>It's apparent that the errors are related to some missing-value fields in the docker-compose.yml file:
e.g.,</p>

<pre><code>build:
  context: .
  args:
    http_proxy:
    https_proxy:
    no_proxy:
    socks_proxy:
    TF_ANNOTATION: "no"
</code></pre>

<p>I searched online and found a related github issue, which seems to have been fixed <a href="https://github.com/kubernetes/kompose/issues/388" rel="nofollow noreferrer">Issue388</a>. (But no). So I'm wondering how to handle the key-only fields during conversion. </p>

<p>My kompose is shipped with the docker desktop on Mac. 
Kompose version: 1.19.0
Docker:</p>

<ul>
<li>Engine: 19.03.2</li>
<li>Compose: 1.24.1
   kubernetes: 1.14.6</li>
</ul>

Jaylin
<p>Changing the version from 2 to 3 in docker-compose.yml works for the conversion. </p>
