fernando-antonio / glassfish

Configuração do GlassFish 4.1 utilizando Docker
0 stars 1 forks source link

Erro ao executar o comando 'sudo docker-compose up --build' #1

Closed CaioSimioni closed 2 weeks ago

CaioSimioni commented 2 weeks ago

Quando tento usar o comando docker compose up --build, conforme o README.md aparece o seguinte log.

❯ sudo docker-compose up --build
WARN[0000] /home/caiosimioni/Área de trabalho/Projetos/glassfish-server-docker-compose/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Building 1.2s (9/9) FINISHED                                                                                                                                     docker:default
 => [glassfish internal] load build definition from Dockerfile                                                                                                                 0.0s
 => => transferring dockerfile: 418B                                                                                                                                           0.0s
 => [glassfish internal] load metadata for docker.io/library/glassfish:4.1-jdk8                                                                                                1.1s
 => [glassfish internal] load .dockerignore                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                0.0s
 => [glassfish internal] load build context                                                                                                                                    0.0s
 => => transferring context: 1.60kB                                                                                                                                            0.0s
 => [glassfish 1/3] FROM docker.io/library/glassfish:4.1-jdk8@sha256:8077dfad6754e844f3fd197832ca62c26700433290e392700e0020226256de41                                          0.0s
 => CACHED [glassfish 2/3] COPY entrypoint.sh /usr/local/bin/entrypoint.sh                                                                                                     0.0s
 => CACHED [glassfish 3/3] RUN chmod +x /usr/local/bin/entrypoint.sh                                                                                                           0.0s
 => [glassfish] exporting to image                                                                                                                                             0.0s
 => => exporting layers                                                                                                                                                        0.0s
 => => writing image sha256:e2bc65a0c2982137b9e1c8734cb840fe346ec87fcbac1cd353407fe8f3a5be36                                                                                   0.0s
 => => naming to docker.io/library/glassfish-server-docker-compose-glassfish                                                                                                   0.0s
 => [glassfish] resolving provenance for metadata file                                                                                                                         0.0s
[+] Running 1/1
 ✔ Container glassfish-server-docker-compose-glassfish-1  Recreated                                                                                                            0.1s 
Attaching to glassfish-1
glassfish-1  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/local/bin/entrypoint.sh: line 25:     7 Aborted                 (core dumped) asadmin start-domain -v
glassfish-1 exited with code 134
CaioSimioni commented 2 weeks ago

Esqueça, consegui resolver isso. Fiz um fork do seu repositório com algumas motificações que funcionaram para mim.

CaioSimioni/glassfish-server-docker-compose