Quando executo o docker run não acontece nada, o container para de executar do mesmo jeito que o ubuntu mostrado nas aulas anteriores.
kennedy@ken:curso-react-alurabooks$ docker build -t kennedy/allbook:1.1 .
[+] Building 395.2s (10/10) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.7s
=> => transferring dockerfile: 129B 0.0s
=> [internal] load metadata for docker.io/library/node:20 4.2s
=> [internal] load .dockerignore 0.7s
=> => transferring context: 2B 0.0s
=> [1/5] FROM docker.io/library/node:20@sha256:48db4f6ea21d134be744207225753a1730c4bc1b4cdf8 159.5s
=> => resolve docker.io/library/node:20@sha256:48db4f6ea21d134be744207225753a1730c4bc1b4cdf836 1.0s
=> => sha256:48db4f6ea21d134be744207225753a1730c4bc1b4cdf836d44511c36bf0e34d7 6.41kB / 6.41kB 0.0s
=> => sha256:8d0dcb299a107fa548f21b2e990a5fbc06249ef20f54ca64215d8f4b6c798732 2.49kB / 2.49kB 0.0s
=> => sha256:dd223fd5024da3fbb5ed248949c0c6ccf84d9637923d508fe9c9db57ddbef984 6.55kB / 6.55kB 0.0s
=> => sha256:2e66a70da0bec13fb3d492fcdef60fd8a5ef0a1a65c4e8a4909e26742852f0 64.15MB / 64.15MB 11.9s
=> => sha256:8cd46d290033f265db57fd808ac81c444ec5a5b3f189c3d6d85043b64733691 49.56MB / 49.56MB 9.4s
=> => sha256:2e6afa3f266c11e8960349e7866203a9df478a50362bb5488c45fe39d99b27 24.05MB / 24.05MB 13.7s
=> => extracting sha256:8cd46d290033f265db57fd808ac81c444ec5a5b3f189c3d6d85043b647336913 5.4s
=> => sha256:1c8ff076d818ad6b8557e03e10c83657cc716ab287c8380054ff91571c8c 211.27MB / 211.27MB 27.2s
=> => sha256:d01ef74013ddafa2b2e9f13a2af70b9f26bae64cedf4db9b6dd92f94247dd9d3 3.32kB / 3.32kB 19.6s
=> => sha256:17076c042f966e11bf108c07b7f4ab88b52c1308c5993e9e7d4486742741b3 48.15MB / 48.15MB 23.5s
=> => sha256:35daf8b1075a994bba8f2d0b52ea74d4f9d7880135db5ac3a8f631143dd8c173 1.25MB / 1.25MB 22.6s
=> => extracting sha256:2e6afa3f266c11e8960349e7866203a9df478a50362bb5488c45fe39d99b2707 1.6s
=> => sha256:f6afe88969eba4306e892513b894c6aa0c5a5af23686a58606b39f1fd919e1f7 446B / 446B 24.6s
=> => extracting sha256:2e66a70da0bec13fb3d492fcdef60fd8a5ef0a1a65c4e8a4909e26742852f0f2 3.7s
=> => extracting sha256:1c8ff076d818ad6b8557e03e10c83657cc716ab287c8380054ff91571c8cae81 13.7s
=> => extracting sha256:d01ef74013ddafa2b2e9f13a2af70b9f26bae64cedf4db9b6dd92f94247dd9d3 0.0s
=> => extracting sha256:17076c042f966e11bf108c07b7f4ab88b52c1308c5993e9e7d4486742741b371 3.6s
=> => extracting sha256:35daf8b1075a994bba8f2d0b52ea74d4f9d7880135db5ac3a8f631143dd8c173 4.1s
=> => extracting sha256:f6afe88969eba4306e892513b894c6aa0c5a5af23686a58606b39f1fd919e1f7 0.0s
=> [internal] load build context 13.7s
=> => transferring context: 311.32MB 7.7s
=> [2/5] WORKDIR /app 6.3s
=> [3/5] COPY package.json . 8.5s
=> [4/5] RUN npm install 131.3s
=> [5/5] COPY . . 33.3s
=> exporting to image 39.5s
=> => exporting layers 37.6s
=> => writing image sha256:573c938a125c4537742f63b3b1c2d22b7329cbae7a7b605d401455697491c6d9 0.3s
=> => naming to docker.io/kennedy/allbook:1.1 1.0s
1 warning found (use docker --debug to expand):
- JSONArgsRecommended: JSON arguments recommended for ENTRYPOINT to prevent unintended behavior related to OS signals (line 6)
kennedy@ken:curso-react-alurabooks$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
kennedy/allbook 1.1 573c938a125c 5 minutes ago 2.06GB
.
.
.
kennedy@ken:~$ docker run -d -p 8080:3000 kennedy/allbook:1.1
dca796be0aa63d80ae80fda052fd24028c6b57a28d3369df63c06c4cc3759eff
kennedy@ken:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Ao acessar localhost:8080 não aparece o front-end