Comments (3)
I made it work without any permissions issues but performance are still very low, you'd better create a ubuntu Hyper V machine and use it to make it runs, my opinion ;)
from magento2.
I tried using Virtual Box Ubuntu machine, @kennedyabitbol but performance is low, since i used a shared folder. I'll try with Hyper V.
Anyway, i hope that @rafaelstz can point out something
from magento2.
Performance is super slow on windows with Hyper V, WSL 1 or Virtual Box.
Attempting Windows 10 build 2004 Ubuntu via WSL 2.
Windows 10 WSL 2 running Ubuntu.
Errors on install from this command.
Creating magento-local_apache_1 ...
ERROR: for magento-local_apache_1 a bytes-like object is required, not 'str'
ERROR: for phpmyadmin a bytes-like object is required, not 'str'
ERROR: for apache a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 261, in _raise_for_status
response.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+docker://localhost/v1.22/containers/6e21be8c7fa03be7734733c2c5f061726f3098cd2026dd6937058d5549c94f96/start
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/compose/service.py", line 625, in start_container
container.start()
File "/usr/lib/python3/dist-packages/compose/container.py", line 241, in start
return self.client.start(self.id, **options)
File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 19, in wrapped
return f(self, resource_id, *args, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/container.py", line 1095, in start
self._raise_for_status(res)
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 263, in _raise_for_status
raise create_api_error_from_http_exception(e)
File "/usr/lib/python3/dist-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 500 Server Error: Internal Server Error ("b'driver failed programming external connectivity on endpoint magento-local_apache_1 (614d8775f6b15e0deb2f8ec725876b6bf840b31520f55431df75ca1862125a21): Bind for 0.0.0.0:80 failed: port is already allocated'")
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in <module>
load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 72, in main
command()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 128, in perform_command
handler(command, command_options)
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1107, in up
to_attach = up(False)
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1088, in up
return self.project.up(
File "/usr/lib/python3/dist-packages/compose/project.py", line 565, in up
results, errors = parallel.parallel_execute(
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 112, in parallel_execute
raise error_to_reraise
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 210, in producer
result = func(obj)
File "/usr/lib/python3/dist-packages/compose/project.py", line 548, in do
return service.execute_convergence_plan(
File "/usr/lib/python3/dist-packages/compose/service.py", line 545, in execute_convergence_plan
return self._execute_convergence_create(
File "/usr/lib/python3/dist-packages/compose/service.py", line 460, in _execute_convergence_create
containers, errors = parallel_execute(
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 112, in parallel_execute
raise error_to_reraise
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 210, in producer
result = func(obj)
File "/usr/lib/python3/dist-packages/compose/service.py", line 465, in <lambda>
lambda service_name: create_and_start(self, service_name.number),
File "/usr/lib/python3/dist-packages/compose/service.py", line 457, in create_and_start
self.start_container(container)
File "/usr/lib/python3/dist-packages/compose/service.py", line 627, in start_container
if "driver failed programming external connectivity" in ex.explanation:
TypeError: a bytes-like object is required, not 'str'
But I suspect that this is because the port is already in use.
Ignoring.
Before install, composer very very slow, lets use this to have parallel
docker-compose exec apache bash
composer global require hirak/prestissimo
exit
from magento2.
Related Issues (20)
- Is it possible to turn off Mailhog and sending emails? HOT 1
- SQLSTATE[HY000] [2002] No such file or directory in Windows workflow
- Is docker saving products/changes in magento2 to container? HOT 1
- Elasticsearch failed connection in linux setup
- My application does not load sample data. HOT 4
- is not posible use grunt
- chmod: cannot access error HOT 7
- debug logs
- XDEBUG config vscode
- Traefik configuration - Investigating
- Cannot create cache directory HOT 1
- Upgrade node
- Upgrade Node for Magento PWA setup
- ERROR: No container found for apache_1 HOT 4
- magento2.4 cant instal HOT 2
- Doesn't works with magento 2.4 HOT 4
- ERR_CONNECTION_REFUSED em localhost HOT 3
- how do you docker down and docker up- once i do this it no longer finds page HOT 3
- bad flag in substitute command: 'U' HOT 1
- Is possible to create subdomain working along with main domain ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2.