[GH-ISSUE #1667] Can not run docker image #527

Closed
opened 2026-03-16 15:51:24 +03:00 by kerem · 8 comments
Owner

Originally created by @codati on GitHub (May 20, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1667

hi, thx for read

Describe the bug
infini loader

To Reproduce
run:

docker run -p 3000:3000 hoppscotch/hoppscotch:latest

and go to http://localhost:3000

Expected behavior
i can use app ^^

Screenshots
image

$ docker run -p 3000:3000 hoppscotch/hoppscotch:latest

> hoppscotch@1.10.0 dev /app
> nuxt

ℹ Using Tailwind CSS from ~/assets/css/tailwind.css
ℹ Merging Tailwind config from ~/tailwind.config.js

 WARN  No .env file found in /app.

ℹ Listening on: http://172.17.0.2:3000/
ℹ Preparing project for development
ℹ Initial build may take a while
ℹ Tailwind JIT activated
ℹ Discovered Components: .nuxt/components/readme.md
✔ Builder initialized
✔ Nuxt files generated

 WARN 


 WARN  warn - You have enabled the JIT engine which is currently in preview.


 WARN  warn - Preview features are not covered by semver, may introduce breaking changes, and can change at any time.

ℹ Warming up worker pools
✔ Worker pools ready
ℹ Compiling Client
✔ Client: Compiled successfully in 47.51s

 WARN  Compiled with 1 warnings


 WARN  in ./node_modules/yargs-parser/build/lib/index.js

Critical dependency: the request of a dependency is an expression

Issues checking in progress...
↻ Updated /root/.tailwindcss/touch/touch-18-qdaNO1cqR593
ℹ Waiting for file changes
ℹ Memory usage: 467 MB (RSS: 958 MB)
ℹ Listening on: http://172.17.0.2:3000/
ℹ Compiling Client
✔ Client: Compiled successfully in 1.01m

 WARN  Compiled with 1 warnings


 WARN  in ./node_modules/yargs-parser/build/lib/index.js

Critical dependency: the request of a dependency is an expression

No issues found.

Desktop (please complete the following information):

  • OS: debian 11.0
  • Browser: Chromium
  • Version: 89.0.4389.114
Originally created by @codati on GitHub (May 20, 2021). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1667 hi, thx for read **Describe the bug** infini loader **To Reproduce** run: ``` sh docker run -p 3000:3000 hoppscotch/hoppscotch:latest ``` and go to `http://localhost:3000` **Expected behavior** i can use app ^^ **Screenshots** ![image](https://user-images.githubusercontent.com/2631966/118985193-c6093c80-b96d-11eb-993d-dfd9fa2479cf.png) ``` $ docker run -p 3000:3000 hoppscotch/hoppscotch:latest > hoppscotch@1.10.0 dev /app > nuxt ℹ Using Tailwind CSS from ~/assets/css/tailwind.css ℹ Merging Tailwind config from ~/tailwind.config.js WARN No .env file found in /app. ℹ Listening on: http://172.17.0.2:3000/ ℹ Preparing project for development ℹ Initial build may take a while ℹ Tailwind JIT activated ℹ Discovered Components: .nuxt/components/readme.md ✔ Builder initialized ✔ Nuxt files generated WARN WARN warn - You have enabled the JIT engine which is currently in preview. WARN warn - Preview features are not covered by semver, may introduce breaking changes, and can change at any time. ℹ Warming up worker pools ✔ Worker pools ready ℹ Compiling Client ✔ Client: Compiled successfully in 47.51s WARN Compiled with 1 warnings WARN in ./node_modules/yargs-parser/build/lib/index.js Critical dependency: the request of a dependency is an expression Issues checking in progress... ↻ Updated /root/.tailwindcss/touch/touch-18-qdaNO1cqR593 ℹ Waiting for file changes ℹ Memory usage: 467 MB (RSS: 958 MB) ℹ Listening on: http://172.17.0.2:3000/ ℹ Compiling Client ✔ Client: Compiled successfully in 1.01m WARN Compiled with 1 warnings WARN in ./node_modules/yargs-parser/build/lib/index.js Critical dependency: the request of a dependency is an expression No issues found. ``` **Desktop (please complete the following information):** - OS: debian 11.0 - Browser: Chromium - Version: 89.0.4389.114
kerem closed this issue 2026-03-16 15:51:29 +03:00
Author
Owner

@liyasthomas commented on GitHub (May 20, 2021):

Looks like a duplicate of #1661
Please look at this comment: https://github.com/hoppscotch/hoppscotch/issues/1661#issuecomment-844741363

<!-- gh-comment-id:845154949 --> @liyasthomas commented on GitHub (May 20, 2021): Looks like a duplicate of #1661 Please look at this comment: https://github.com/hoppscotch/hoppscotch/issues/1661#issuecomment-844741363
Author
Owner

@liyasthomas commented on GitHub (May 20, 2021):

Rename .env.example to .env and restart your local development server:

$ docker run -p 3000:3000 hoppscotch/hoppscotch:latest
$ docker exec -ti container_name sh
# mv .env.example .env
# exit
$ docker restart container_name

To get docker container name:

$ docker ps --format "{{.Names}}"
<!-- gh-comment-id:845238480 --> @liyasthomas commented on GitHub (May 20, 2021): Rename `.env.example` to `.env` and restart your local development server: ``` $ docker run -p 3000:3000 hoppscotch/hoppscotch:latest $ docker exec -ti container_name sh # mv .env.example .env # exit $ docker restart container_name ``` To get docker container name: ``` $ docker ps --format "{{.Names}}" ```
Author
Owner

@1-bytes commented on GitHub (Sep 10, 2021):

Rename .env.example to .env and restart your local development server:

$ docker run -p 3000:3000 hoppscotch/hoppscotch:latest
$ docker exec -ti container_name sh
# mv .env.example .env
# exit
$ docker restart container_name

To get docker container name:

$ docker ps --format "{{.Names}}"

hey, @liyasthomas
I think this needs to be written into the wiki or document, I suspect there are a lot of people who need this...
I spent two hours trying to find it :(

<!-- gh-comment-id:917292076 --> @1-bytes commented on GitHub (Sep 10, 2021): > Rename `.env.example` to `.env` and restart your local development server: > > ``` > $ docker run -p 3000:3000 hoppscotch/hoppscotch:latest > $ docker exec -ti container_name sh > # mv .env.example .env > # exit > $ docker restart container_name > ``` > > To get docker container name: > > ``` > $ docker ps --format "{{.Names}}" > ``` hey, @liyasthomas I think this needs to be written into the wiki or document, I suspect there are a lot of people who need this... I spent two hours trying to find it :(
Author
Owner

@liyasthomas commented on GitHub (Sep 11, 2021):

Hi @1-bytes, this step is now absolute since we added the command to Docker file (github.com/hoppscotch/hoppscotch@790b743e42 (diff-dd2c0eb6ea)).

You just need to run:

docker run --rm --name hoppscotch -p 3000:3000 hoppscotch/hoppscotch:latest

<!-- gh-comment-id:917313652 --> @liyasthomas commented on GitHub (Sep 11, 2021): Hi @1-bytes, this step is now absolute since we added the command to Docker file (https://github.com/hoppscotch/hoppscotch/commit/790b743e422fcb0ed3181c0ea4375149b04f1f8d#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557). You just need to run: ``` docker run --rm --name hoppscotch -p 3000:3000 hoppscotch/hoppscotch:latest ```
Author
Owner

@1-bytes commented on GitHub (Sep 11, 2021):

嗨@1-bytes,这一步现在是绝对的,因为我们将命令添加到 Docker 文件(790b743 #diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557)。

你只需要运行:

docker run --rm --name hoppscotch -p 3000:3000 hoppscotch/hoppscotch:latest

Some small teams or individuals prefer to deploy on their own servers. So they had to go and try to modify the .env file.
I think we should record how to modify the .env file inside docker and how to configure Firebase :)
For example, I don't know how to configure Firebase right now, and I'm going through various ways to understand it :(

<!-- gh-comment-id:917382650 --> @1-bytes commented on GitHub (Sep 11, 2021): > 嗨@1-bytes,这一步现在是绝对的,因为我们将命令添加到 Docker 文件([790b743 #diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557](https://github.com/hoppscotch/hoppscotch/commit/790b743e422fcb0ed3181c0ea4375149b04f1f8d#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557))。 > > 你只需要运行: > > ``` > docker run --rm --name hoppscotch -p 3000:3000 hoppscotch/hoppscotch:latest > ``` Some small teams or individuals prefer to deploy on their own servers. So they had to go and try to modify the .env file. I think we should record how to modify the .env file inside docker and how to configure Firebase :) For example, I don't know how to configure Firebase right now, and I'm going through various ways to understand it :(
Author
Owner

@liyasthomas commented on GitHub (Sep 11, 2021):

Wait until the next milestone, we're planning on having a detailed guideline on how to self-host Hoppscotch instance along with a monorepo support. Thank you.

<!-- gh-comment-id:917384290 --> @liyasthomas commented on GitHub (Sep 11, 2021): Wait until the next milestone, we're planning on having a detailed guideline on how to self-host Hoppscotch instance along with a monorepo support. Thank you.
Author
Owner

@1-bytes commented on GitHub (Sep 11, 2021):

nice :)

<!-- gh-comment-id:917417134 --> @1-bytes commented on GitHub (Sep 11, 2021): nice :)
Author
Owner

@leandro-toledo-uux commented on GitHub (Jan 7, 2022):

Rename .env.example to .env and restart your local development server:

$ docker run -p 3000:3000 hoppscotch/hoppscotch:latest
$ docker exec -ti container_name sh
# mv .env.example .env
# exit
$ docker restart container_name

To get docker container name:

$ docker ps --format "{{.Names}}"

Hi @liyasthomas , i'm not fluent in frontend (vue), but realized the GTM variables is used in compile client time, right?
In that case, only the firebase parameters will be taken into account, I mean, in a container restart, right?

<!-- gh-comment-id:1007535748 --> @leandro-toledo-uux commented on GitHub (Jan 7, 2022): > Rename `.env.example` to `.env` and restart your local development server: > > ``` > $ docker run -p 3000:3000 hoppscotch/hoppscotch:latest > $ docker exec -ti container_name sh > # mv .env.example .env > # exit > $ docker restart container_name > ``` > > To get docker container name: > > ``` > $ docker ps --format "{{.Names}}" > ``` Hi @liyasthomas , i'm not fluent in frontend (vue), but realized the GTM variables is used in compile client time, right? In that case, only the firebase parameters will be taken into account, I mean, in a container restart, right?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#527
No description provided.