Comments (14)
Your message has been formatted poorly. Can you run the commands one by one and let me know which one causes the issue? What version of docker
are you running? What version of docker-compose
are you running? What does your docker-compose.yml
look like?
from docker-magento2.
Hi,
Thanks for quick reply. Answering your questions:
root@aragorn:~/compose/docker-magento2-master# docker --version
**Docker version 1.6.2, build 7c8fca2**
root@aragorn:~/compose/docker-magento2-master# docker-compose --version
**docker-compose version 1.6.2, build 4d72027**
My .yml as below:
cat docker-compose.yml
version: "2"
services:
web:
image: meanbee/magento2-nginx:1.9
ports:
- "80:80"
links:
- fpm
- db
volumes_from:
- appdata
env_file:
- ./global.env
environment:
- VIRTUAL_HOST=magento2.docker
fpm:
image: meanbee/magento2-php:7.0-fpm
ports:
- 9000
links:
- db
volumes_from:
- appdata
env_file:
- ./global.env
db:
image: mariadb:10
ports:
- 3306
volumes_from:
- dbdata
environment:
- MYSQL_ROOT_PASSWORD=magento2
- MYSQL_DATABASE=magento2
- MYSQL_USER=magento2
- MYSQL_PASSWORD=magento2
- TERM=meh
cli:
image: meanbee/magento2-php:7.0-cli
links:
- db
volumes:
- ~/.composer/cache:/root/.composer/cache
volumes_from:
- appdata
env_file:
- ./global.env
- ./composer.env
environment:
- M2SETUP_DB_HOST=db
- M2SETUP_DB_NAME=magento2
- M2SETUP_DB_USER=magento2
- M2SETUP_DB_PASSWORD=magento2
- M2SETUP_BASE_URL=http://magento2.docker/
- M2SETUP_BACKEND_FRONTNAME=admin
- M2SETUP_ADMIN_FIRSTNAME=Admin
- M2SETUP_ADMIN_LASTNAME=User
- [email protected]
- M2SETUP_ADMIN_USER=admin
- M2SETUP_ADMIN_PASSWORD=password1
- M2SETUP_VERSION=2.0.2
# - M2SETUP_USE_SAMPLE_DATA=true
appdata:
image: tianon/true
volumes:
- ./magento:/magento
dbdata:
image: tianon/true
volumes:
- /var/lib/mysql
Of course in composer.env I have proper GitHub & Magento keys.
from docker-magento2.
And result of command:
docker-compose run cli magento-installer
is:
Creating network "dockermagento2master_default" with the default driver
ERROR: 404 page not found
from docker-magento2.
Version two of the docker compose yaml file schema needs docker 1.10 or
later. Can you try using a version one schema with these images or upgrade
docker?
On Tue, 22 Mar 2016 at 20:23, pbilinski [email protected] wrote:
And result of command:
docker-compose run cli magento-installer
is:
Creating network "dockermagento2master_default" with the default driver
ERROR: 404 page not found—
You are receiving this because you commented.Reply to this email directly or view it on GitHub
#15 (comment)
from docker-magento2.
Ok, after upgrading "docker" to latest version everything worked fine.
Now, I have problem with no-working PHP-FPM:
Result: Installation complete
'docker ps' result:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a3aae8f055c1 meanbee/magento2-nginx:1.9 "/usr/local/bin/docke" 5 minutes ago Up About a minute 0.0.0.0:80->80/tcp, 443/tcp dockermagento2master_web_1
a9ebe1b77084 mariadb:10 "/docker-entrypoint.s" About an hour ago Up About a minute 0.0.0.0:32775->3306/tcp dockermagento2master_db_1
There is no "9000" port running FPM. It's interesing becase:
docker-compose restart
Restarting dockermagento2master_web_1 ... done
Restarting dockermagento2master_cli_1 ... done
Restarting dockermagento2master_fpm_1 ... done
Restarting dockermagento2master_db_1 ... done
Restarting dockermagento2master_dbdata_1 ... done
Restarting dockermagento2master_appdata_1 ... done
Seems to work fine.
What should be done to have FPM working @ 9000?
HTTP/SQL seems to be OK after deploying docker-compose with .yml as pasted in this subject before.
from docker-magento2.
What does docker-compose ps
output?
from docker-magento2.
$ docker-compose ps
Name Command State Ports
dockermagento2master_appdata_1 /true Exit 0
dockermagento2master_cli_1 /usr/local/bin/docker-envi ... Exit 0
dockermagento2master_db_1 /docker-entrypoint.sh mysqld Up 0.0.0.0:32771->3306/tcp
dockermagento2master_dbdata_1 /true Exit 0
*dockermagento2master_fpm_1 /usr/local/bin/docker-envi ... Exit 78 *
dockermagento2master_web_1 /usr/local/bin/docker-envi ... Up 443/tcp, 0.0.0.0:80->80/tcp
from docker-magento2.
What kind of logs do you get from docker on that container?
from docker-magento2.
How can I get those logs?
from docker-magento2.
docker-compose logs
(https://docs.docker.com/compose/reference/logs/)docker logs
(https://docs.docker.com/engine/reference/commandline/logs/)- Running
docker-compose up
(without-d
to run it in foreground mode)
from docker-magento2.
Ok, now we're clear. I composed whole thing with 'root' user and now have:
Incumbent: user = www-data, group = www-data
groupmod: GID '990' already exists
[11-Apr-2016 15:18:55] ERROR: [pool www] please specify user and group other than root
[11-Apr-2016 15:18:55] ERROR: [pool www] please specify user and group other than root
[11-Apr-2016 15:18:55] ERROR: FPM initialization failed
[11-Apr-2016 15:18:55] ERROR: FPM initialization failed
So I'll try to make compose via normal user and then let you know.
from docker-magento2.
Yeah. Everything works fine. Thanks a lot!
from docker-magento2.
OK, another (random :/) problem:
/compose/docker-magento2-master$ docker-compose run cli magento-installer
Creating network "dockermagento2master_default" with the default driver
Pulling appdata (tianon/true:latest)...
latest: Pulling from tianon/true
4a085cb02190: Pull complete
Digest: sha256:f38efe18048c9e7d3f264eb2c76081417b30e3ecb28f2d38eaeb8588abf3a902
Status: Downloaded newer image for tianon/true:latest
Creating dockermagento2master_appdata_1
Creating dockermagento2master_dbdata_1
Pulling db (mariadb:10)...
10: Pulling from library/mariadb
efd26ecc9548: Pull complete
a3ed95caeb02: Pull complete
af2f7dea6ac4: Pull complete
2ae5675c66d9: Pull complete
486710c606c8: Pull complete
a9f999908f1c: Pull complete
b5606ca33e0a: Pull complete
d12010a03c20: Pull complete
82fc9272a692: Pull complete
0d4b5b846b2c: Pull complete
Digest: sha256:3e8635aaa913692418245bf5b9e05cd54ecfc0abbd4349a935bb385671ed5506
Status: Downloaded newer image for mariadb:10
Creating dockermagento2master_db_1
Pulling cli (meanbee/magento2-php:7.0-cli)...
Pulling repository docker.io/meanbee/magento2-php
ERROR: Error while pulling image: Get https://index.docker.io/v1/repositories/meanbee/magento2-php/images: dial tcp: lookup index.docker.io on 127.0.1.1:53: no such host
Any ideas?
from docker-magento2.
This is a different issue to the one that you experienced when you opened this issue - it should not have been reopened.
A Google gives me:
- https://linuxconfig.org/docker-dial-tcp-lookup-index-docker-io-no-such-host-fix
- moby/moby#1470 (comment)
- https://stackoverflow.com/questions/28301151/docker-pull-error
It isn't related to the docker images in this repository.
from docker-magento2.
Related Issues (20)
- It's great HOT 1
- PCNTL Sould be installed by default
- Database issues HOT 2
- generation folder is not in $MAGENTO_ROOT/var/ but $MAGENTO_ROOT/ HOT 2
- Extension name format for magento-extension-installer HOT 1
- [WINDOWS] The filesystem probably does not support all permission bits. If this is a FATfilesystem, you should set the "fat" option to true
- [WINDOWS] The filesystem probably does not support all permission bits. If this is a FATfilesystem, you should set the "fat" option to true
- theme install issues running CLI magento-commands
- class not found: MagentoHackathon\Composer\Magento\Plugin
- Rebuild PHP image HOT 2
- Documentation? What is the docker-compose-build.yml doing? HOT 1
- After Several days of use page load increases to 5+ minutes.
- What is the url for visiting the website? HOT 1
- Why there are no releases? HOT 1
- Missing extension ext-sockets for Magento 2.3.4 HOT 4
- SQLSTATE[HY000] [1045] Access denied for user HOT 3
- Could not delete /var/www/magento/vendor/composer/97287359/view/frontend/web/swagger-ui/js
- Magento 2.4 support ? HOT 1
- no access through localhost HOT 3
- Could not delete /var/www/magento/: 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 docker-magento2.