Git Product home page Git Product logo

laravel-complete-dockerization's Issues

Facing issue in ubuntu 22.04 while dockerizing my laravel project.

Hi,
I have followed all the procedure of dockerization my laravel project as per your video you youtube as well code exactly copied from Git, but unfortunately I a facing error. Can you please help me in this regard.

Error is Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker/entrypoint.sh": stat docker/entrypoint.sh: no such file or directory: unknown

Detail is Below

sohail@:/var/www/appointmentconfigurations$ docker-compose down --volumes
[+] Running 4/4
⠿ Container appointmentconfigurations-php-1 Removed 0.0s
⠿ Container postgresql Removed 0.3s
⠿ Volume appointmentconfigurations_db-data Removed 0.2s
⠿ Network appointmentconfigurations_default Removed 0.2s
sohail@sohail-Inspiron-15-3511:/var/www/appointmentconfigurations$ docker-compose build
[+] Building 60.0s (15/16)
=> [internal] load build definition from Dockerfile 0.0s
[+] Building 61.4s (11/14)
=> => transferring dockerfile: 425B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/php:7.4 4.6s
=> [auth] library/php:pull token for registry-1.docker.io 0.0s
=> [internal] load build context 7.9s
=> => transferring context: 282.75MB 7.6s
=> CACHED FROM docker.io/library/composer:2.3.10 4.3s
=> => resolve docker.io/library/composer:2.3.10 4.3s
=> [php 1/8] FROM docker.io/library/php:7.4@sha256:620a6b9f4d4feef2210026172570465e9d0c1de79766418d3affd09190a7fda5 0.0s
=> CACHED [php 2/8] RUN apt-get update -y 0.0s
=> CACHED [php 3/8] RUN apt-get install -y unzip libpq-dev libcurl4-gnutls-dev 0.0s
=> CACHED [php 4/8] RUN docker-php-ext-install pdo pdo_pgsql bcmath 0.0s
=> [php 5/8] RUN pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis 47.5s
=> [auth] library/composer:pull token for registry-1.docker.io 0.0s
[+] Building 61.7s (16/16) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 425B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/php:7.4 4.6s
[+] Building 61.5s (12/14)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 425B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/php:7.4 4.5s
=> CACHED FROM docker.io/library/composer:2.3.10 4.3s
=> => resolve docker.io/library/composer:2.3.10 4.3s
=> [php 1/8] FROM docker.io/library/php:7.4@sha256:620a6b9f4d4feef2210026172570465e9d0c1de79766418d3affd09190a7fda5 0.0s
=> [internal] load build context 1.4s
=> => transferring context: 1.74MB 1.3s
=> CACHED [php 2/8] RUN apt-get update -y 0.0s
=> CACHED [php 3/8] RUN apt-get install -y unzip libpq-dev libcurl4-gnutls-dev 0.0s
=> CACHED [php 4/8] RUN docker-php-ext-install pdo pdo_pgsql bcmath 0.0s
=> [php 5/8] RUN pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis 47.5s
=> [php 6/8] WORKDIR /var/www 0.0s
=> exporting to image 5.6s
=> => exporting layers 5.6s
=> => writing image sha256:97c11d44877ff3d492cb786c5a2c7b6ada912bae7745b195b066835006ce23d3 0.0s
=> => naming to docker.io/library/appointmentconfigurations-php

sohail@:/var/www/appointmentconfigurations$ docker-compose up
[+] Running 7/7
⠿ redis Pulled 11.9s
⠿ 63b65145d645 Already exists 0.0s
⠿ 6a83e1b979d3 Pull complete 2.3s
⠿ 33568fda55fd Pull complete 2.9s
⠿ d7b8c87f98b0 Pull complete 4.3s
⠿ a233cbd936e4 Pull complete 4.4s
⠿ 8182adae0173 Pull complete 4.5s
[+] Running 0/1
[+] Running 6/6intmentconfigurations_default Creating 0.1s
⠿ Network appointmentconfigurations_default Created 0.2s
⠿ Volume "appointmentconfigurations_db-data" Created 0.0s
⠿ Container appointmentconfigurations-redis-1 Created 0.2s
⠿ Container appointmentconfigurations-database-1 Created 0.2s
⠿ Container appointmentconfigurations-websocket-1 Created 0.2s
⠿ Container appointmentconfigurations-php-1 Created 0.2s
Attaching to appointmentconfigurations-database-1, appointmentconfigurations-php-1, appointmentconfigurations-redis-1, appointmentconfigurations-websocket-1
appointmentconfigurations-redis-1 | 1:C 08 Mar 2023 11:59:28.434 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
appointmentconfigurations-redis-1 | 1:C 08 Mar 2023 11:59:28.434 # Redis version=7.0.9, bits=64, commit=00000000, modified=0, pid=1, just started
appointmentconfigurations-redis-1 | 1:C 08 Mar 2023 11:59:28.434 # Configuration loaded
appointmentconfigurations-redis-1 | 1:M 08 Mar 2023 11:59:28.436 * monotonic clock: POSIX clock_gettime
appointmentconfigurations-redis-1 | 1:M 08 Mar 2023 11:59:28.438 * Running mode=standalone, port=6379.
appointmentconfigurations-redis-1 | 1:M 08 Mar 2023 11:59:28.438 # Server initialized
appointmentconfigurations-redis-1 | 1:M 08 Mar 2023 11:59:28.455 * Creating AOF base file appendonly.aof.1.base.rdb on server start
appointmentconfigurations-redis-1 | 1:M 08 Mar 2023 11:59:28.482 * Creating AOF incr file appendonly.aof.1.incr.aof on server start
appointmentconfigurations-redis-1 | 1:M 08 Mar 2023 11:59:28.482 * Ready to accept connections
appointmentconfigurations-database-1 | ********************************************************************************
appointmentconfigurations-database-1 | WARNING: POSTGRES_HOST_AUTH_METHOD has been set to "trust". This will allow
appointmentconfigurations-database-1 | anyone with access to the Postgres port to access your database without
appointmentconfigurations-database-1 | a password, even if POSTGRES_PASSWORD is set. See PostgreSQL
appointmentconfigurations-database-1 | documentation about "trust":
appointmentconfigurations-database-1 | https://www.postgresql.org/docs/current/auth-trust.html
appointmentconfigurations-database-1 | In Docker's default configuration, this is effectively any other
appointmentconfigurations-database-1 | container on the same system.
appointmentconfigurations-database-1 |
appointmentconfigurations-database-1 | It is not recommended to use POSTGRES_HOST_AUTH_METHOD=trust. Replace
appointmentconfigurations-database-1 | it with "-e POSTGRES_PASSWORD=password" instead to set a password in
appointmentconfigurations-database-1 | "docker run".
appointmentconfigurations-database-1 | ********************************************************************************
appointmentconfigurations-database-1 | The files belonging to this database system will be owned by user "postgres".
appointmentconfigurations-database-1 | This user must also own the server process.
appointmentconfigurations-database-1 |
appointmentconfigurations-database-1 | The database cluster will be initialized with locale "en_US.utf8".
appointmentconfigurations-database-1 | The default database encoding has accordingly been set to "UTF8".
appointmentconfigurations-database-1 | The default text search configuration will be set to "english".
appointmentconfigurations-database-1 |
appointmentconfigurations-database-1 | Data page checksums are disabled.
appointmentconfigurations-database-1 |
appointmentconfigurations-database-1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
appointmentconfigurations-database-1 | creating subdirectories ... ok
appointmentconfigurations-database-1 | selecting dynamic shared memory implementation ... posix
appointmentconfigurations-database-1 | selecting default max_connections ... 100
appointmentconfigurations-database-1 | selecting default shared_buffers ... 128MB
appointmentconfigurations-database-1 | selecting default time zone ... UTC
appointmentconfigurations-database-1 | creating configuration files ... ok
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker/entrypoint.sh": stat docker/entrypoint.sh: no such file or directory: unknown

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for database failed: Temporary failure in name resolution (SQL: select * from information_schema.tables where table_schema = chatapp and table_name = migrations and table_type = 'BASE TABLE')

Hello

I have an issue where queue exits with code 0 after php gives the following:

Attaching to laraveldoubtdk-database-1, laraveldoubtdk-node-1, laraveldoubtdk-php-1, laraveldoubtdk-queue-1, laraveldoubtdk-redis-1, laraveldoubtdk-websocket-1
laraveldoubtdk-redis-1 | 1:C 25 Apr 2023 20:53:16.659 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
laraveldoubtdk-redis-1 | 1:C 25 Apr 2023 20:53:16.660 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=1, just started
laraveldoubtdk-redis-1 | 1:C 25 Apr 2023 20:53:16.660 # Configuration loaded
laraveldoubtdk-redis-1 | 1:M 25 Apr 2023 20:53:16.664 * monotonic clock: POSIX clock_gettime
laraveldoubtdk-redis-1 | 1:M 25 Apr 2023 20:53:16.667 * Running mode=standalone, port=6379.
laraveldoubtdk-redis-1 | 1:M 25 Apr 2023 20:53:16.667 # Server initialized
laraveldoubtdk-redis-1 | 1:M 25 Apr 2023 20:53:16.667 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause fail
ures without low memory condition, see jemalloc/jemalloc#1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
laraveldoubtdk-redis-1 | 1:M 25 Apr 2023 20:53:16.683 * Creating AOF base file appendonly.aof.1.base.rdb on server start
laraveldoubtdk-redis-1 | 1:M 25 Apr 2023 20:53:16.715 * Creating AOF incr file appendonly.aof.1.incr.aof on server start
laraveldoubtdk-redis-1 | 1:M 25 Apr 2023 20:53:16.715 * Ready to accept connections
laraveldoubtdk-database-1 | 2023-04-25 20:53:16+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.31-1.el8 started.
laraveldoubtdk-websocket-1 | Env file already exists
laraveldoubtdk-websocket-1 | Running websocket container
laraveldoubtdk-node-1 | Welcome to Node.js v14.21.3.
laraveldoubtdk-node-1 | Type ".help" for more information.
laraveldoubtdk-websocket-1 | Starting the WebSocket server on port 6001...
laraveldoubtdk-database-1 | 2023-04-25 20:53:17+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
laraveldoubtdk-database-1 | 2023-04-25 20:53:17+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.31-1.el8 started.
laraveldoubtdk-database-1 | 2023-04-25 20:53:17+00:00 [Note] [Entrypoint]: Initializing database files
laraveldoubtdk-database-1 | 2023-04-25T20:53:17.218612Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
laraveldoubtdk-database-1 | 2023-04-25T20:53:17.218678Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.31) initializing of server in progress as process 79
laraveldoubtdk-database-1 | 2023-04-25T20:53:17.223900Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
laraveldoubtdk-queue-1 | Env file already exists
laraveldoubtdk-queue-1 | Running queue container
laraveldoubtdk-php-1 | Env file already exists
laraveldoubtdk-php-1 | Running app container
laraveldoubtdk-database-1 | 2023-04-25T20:53:17.548774Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
laraveldoubtdk-database-1 | 2023-04-25T20:53:18.898953Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
laraveldoubtdk-database-1 | 2023-04-25 20:53:22+00:00 [Note] [Entrypoint]: Database files initialized
laraveldoubtdk-database-1 | 2023-04-25 20:53:22+00:00 [Note] [Entrypoint]: Starting temporary server
laraveldoubtdk-database-1 | 2023-04-25T20:53:23.090306Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
laraveldoubtdk-database-1 | 2023-04-25T20:53:23.091495Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31) starting as process 130
laraveldoubtdk-database-1 | 2023-04-25T20:53:23.100425Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
laraveldoubtdk-database-1 | 2023-04-25T20:53:23.182868Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
laraveldoubtdk-database-1 | 2023-04-25T20:53:23.399623Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
laraveldoubtdk-database-1 | 2023-04-25T20:53:23.399659Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
laraveldoubtdk-database-1 | 2023-04-25T20:53:23.401643Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
laraveldoubtdk-database-1 | 2023-04-25T20:53:23.413869Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock
laraveldoubtdk-database-1 | 2023-04-25T20:53:23.414055Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.31' socket: '/var/run/mysqld/mysqld.sock' port: 0 MySQL Community Server - GPL.
laraveldoubtdk-database-1 | 2023-04-25 20:53:23+00:00 [Note] [Entrypoint]: Temporary server started.
laraveldoubtdk-database-1 | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
laraveldoubtdk-database-1 | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
laraveldoubtdk-database-1 | Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.
laraveldoubtdk-database-1 | Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.
laraveldoubtdk-database-1 | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
laraveldoubtdk-database-1 | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
laraveldoubtdk-database-1 | 2023-04-25 20:53:25+00:00 [Note] [Entrypoint]: Creating database chatapp
laraveldoubtdk-database-1 | 2023-04-25 20:53:25+00:00 [Note] [Entrypoint]: Creating user karlog
laraveldoubtdk-database-1 | 2023-04-25 20:53:25+00:00 [Note] [Entrypoint]: Giving user karlog access to schema chatapp
laraveldoubtdk-database-1 |
laraveldoubtdk-database-1 | 2023-04-25 20:53:25+00:00 [Note] [Entrypoint]: Stopping temporary server
laraveldoubtdk-database-1 | 2023-04-25T20:53:25.443032Z 13 [System] [MY-013172] [Server] Received SHUTDOWN from user root. Shutting down mysqld (Version: 8.0.31).
laraveldoubtdk-database-1 | 2023-04-25T20:53:27.620685Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.31) MySQL Community Server - GPL.
laraveldoubtdk-database-1 | 2023-04-25 20:53:28+00:00 [Note] [Entrypoint]: Temporary server stopped
laraveldoubtdk-database-1 |
laraveldoubtdk-database-1 | 2023-04-25 20:53:28+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
laraveldoubtdk-database-1 |
laraveldoubtdk-database-1 | 2023-04-25T20:53:28.698793Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
laraveldoubtdk-database-1 | 2023-04-25T20:53:28.700663Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31) starting as process 1
laraveldoubtdk-database-1 | 2023-04-25T20:53:28.710018Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
laraveldoubtdk-database-1 | 2023-04-25T20:53:28.841312Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
laraveldoubtdk-database-1 | 2023-04-25T20:53:29.016206Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
laraveldoubtdk-database-1 | 2023-04-25T20:53:29.016241Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
laraveldoubtdk-database-1 | 2023-04-25T20:53:29.018246Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a differenlaraveldoubtdk-php-1 | ➜ 742▕ throw new QueryException(
laraveldoubtdk-php-1 | 743▕ $query, $this->prepareBindings($bindings), $e
laraveldoubtdk-php-1 | 744▕ );
laraveldoubtdk-php-1 | 745▕ }
laraveldoubtdk-php-1 | 746▕ }
laraveldoubtdk-php-1 |
laraveldoubtdk-php-1 | +36 vendor frames
laraveldoubtdk-php-1 | 37 artisan:37
laraveldoubtdk-php-1 | Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
laraveldoubtdk-php-1 | Application key set successfully.
laraveldoubtdk-php-1 | Application cache cleared successfully.
laraveldoubtdk-php-1 | Configuration cache cleared successfully.
laraveldoubtdk-php-1 | Route cache cleared successfully.
laraveldoubtdk-php-1 | Route cache cleared successfully.
laraveldoubtdk-php-1 | Starting Laravel development server: http://0.0.0.0:8000
laraveldoubtdk-php-1 | [Tue Apr 25 20:53:58 2023] PHP 8.1.18 Development Server (http://0.0.0.0:8000) started
laraveldoubtdk-queue-1 exited with code 0

image

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.