title: NPM docker command not override by alias podman
body: <p>I'm migrating Docker to Podman and the alias not is working when invoked by npm.</p>
  <p>I added  on my env alias:</p>
  <pre><code>alias docker='podman'
  alias docker-compose='podman-compose'
  </code></pre>
  <p>To test the alias I ran <code>docker-compose up --build </code> and works correctly using podman-compose, like expected.</p>
  <p>I have on my package.json:</p>
  <pre><code>&quot;scripts&quot;: {
      &quot;start&quot;: &quot;docker-compose up --build&quot;,
      ...
  </code></pre>
  <p>When a I ran <strong><em>npm run start</em></strong>, this is the output:</p>
  <pre><code>❯ npm run start
  
  &gt; project@1.0 start
  &gt; docker-compose up --build
  
  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  </code></pre>
  <p>I did one more test, change the <strong>docker-compose</strong> to <strong>podman-compose</strong> on package.json file and works too.</p>
  <h3>Expected Behavior</h3>
  <p>Recognize the env alias. Like happen when I run the command direct on the terminal.</p>
  <h3>Steps To Reproduce</h3>
  <ol>
  <li>Set the podman alias over docker names.</li>
  </ol>
  <pre><code>alias docker='podman'
  alias docker-compose='podman-compose'
  </code></pre>
  <ol start="2">
  <li>Add a script on package.json to use the docker-compose.</li>
  </ol>
  <pre><code>&quot;scripts&quot;: {
      &quot;start&quot;: &quot;docker-compose up --build&quot;,
      ...
  </code></pre>
  <ol start="3">
  <li>Run the npm script.</li>
  </ol>
  <pre><code>npm run start
  </code></pre>
  <h3>Environment</h3>
  <ul>
  <li>npm: 8.13.2</li>
  <li>Node.js: v14.19.3</li>
  <li>OS Name: macOS 12.4 (Monterey)</li>
  <li>System Model Name: Macbook Pro M1</li>
  <li>npm config:</li>
  </ul>
  <pre class="lang-ini prettyprint-override"><code>❯ npm config ls
  ; node bin location = /Users/XPTO/.nvm/versions/node/v14.19.3/bin/node
  ; node version = v14.19.3
  ; npm local prefix = /Users/XPTO
  ; npm version = 8.13.2
  ; cwd = /Users/XPTO
  ; HOME = /Users/XPTO
  ; Run `npm config ls -l` to show all defaults.
  </code></pre>