mitre / caldera

Automated Adversary Emulation Platform
https://caldera.mitre.org
Apache License 2.0
5.67k stars 1.08k forks source link

[Bug Fix] unable to login Docker #3040

Open Blipblopblopblop opened 2 months ago

Blipblopblopblop commented 2 months ago

[BUG] Docker not being able to log in

Docker front end being built before running and writing the env file, which causes users not being able to login. ./Magna/.env needs to exist before building,which doesnt happen for docker

Bug fix

Removed Previous Dockerfile downloaded new one and built it (docker build . --build-arg WIN_BUILD=true -t caldera:latest ) then to run the docker image i ran: docker run -p 8888:8888 caldera:latest --build then i accessed the web page according my base url i set in the local.yml file logged in successfully according to my local.yml credentials :)

BurnyMack commented 2 months ago

Can someone review this issue please?

dickens88 commented 3 days ago

This works for me. The docker-compose.yml file can be something like this.


services:
  caldera:
    image: caldera:latest
    build: . 
    ports:
      - "8888:8888"
    command: ["--build"]  
``
Blipblopblopblop commented 17 hours ago

im not going to lie i completely forgot everything, i did this pull request when i was doing my university project. Hopefully everything goes well.