Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run docker/run-docker with docker image #4249

Open
ljr95 opened this issue Apr 8, 2024 · 2 comments
Open

run docker/run-docker with docker image #4249

ljr95 opened this issue Apr 8, 2024 · 2 comments

Comments

@ljr95
Copy link

ljr95 commented Apr 8, 2024

Hi,
I'm discovering Magento PWA and wanted to know if it was possible to run docker/run-docker with a docker image?
Below is an example:
docker run -v $PWD:/home/node/app -w /home/node/app node:lts docker/run-docker
I like to install as few services as possible on the host.

When I run the command above, I encounter this error:

===========================================================================

-e          Creating SSL/TLS certificate

===========================================================================

yarn install v1.22.19
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.16s.
/home/node/app
node:internal/child_process:1124
    result.error = new ErrnoException(result.error, 'spawnSync ' + options.file);
                   ^

<ref *1> Error: spawnSync sudo ENOENT
    at Object.spawnSync (node:internal/child_process:1124:20)
    at spawnSync (node:child_process:876:24)
    at Object.execFileSync (node:child_process:919:15)
    at Object.run (/home/node/app/docker/node_modules/devcert/dist/utils.js:22:28)
    at LinuxPlatform.deleteProtectedFiles (/home/node/app/docker/node_modules/devcert/dist/platforms/linux.js:99:17)
    at uninstall (/home/node/app/docker/node_modules/devcert/dist/certificate-authority.js:124:25)
    at Object.<anonymous> (/home/node/app/docker/node_modules/devcert/dist/certificate-authority.js:18:9)
    at Generator.next (<anonymous>)
    at /home/node/app/docker/node_modules/tslib/tslib.js:110:75
    at new Promise (<anonymous>) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawnSync sudo',
  path: 'sudo',
  spawnargs: [ 'rm', '-rf', '/root/.config/devcert/domains' ],
  error: [Circular *1],
  status: null,
  signal: null,
  output: null,
  pid: 0,
  stdout: null,
  stderr: null
}

Node.js v20.12.1

Thank you in advance for your help

Copy link

m2-assistant bot commented Apr 8, 2024

Hi @ljr95. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.

@glo85315
Copy link
Collaborator

glo85315 commented Apr 16, 2024

Hi All, issue is reproducible in local environment.
Uploading Screenshot 2024-04-15 at 1.22.09 PM.png…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants