ParrotSec / docker-images

GNU General Public License v3.0
95 stars 25 forks source link

Stuck when running within Docker Desktop Desktop for Mac #16

Open James4Ever0 opened 4 months ago

James4Ever0 commented 4 months ago

Steps to reproduce

How'd you do it?

  1. Install and run Docker app for macOS
  2. Run the image by docker run --rm -it parrotsec/security
  3. Run the command msfconsole and get stuck

Expected behavior

Shall invoke the console.

Current behavior

Get stuck forever.

Versions

Docker version

Docker version 26.1.1, build 4cf5afa

macOS version

Version 12.5 (Apple M1)

Parrot OS version

Distributor ID: Parrot Description: Parrot OS 5.3 (Electro Ara) Release: 5.3 Codename: ara

Metasploit version

Framework: 6.3.27-dev Console : 6.3.27-dev

Additional Information

If I change to the directory /usr/share/metasploit-framework first then run ./msfconsole it will not get stuck, and subsequent msfconsole invocations from anywhere will not get stuck.

One can mitigate this issue by:

# do not run in root directory '/'
docker run --rm -it -w /root parrotsec/security
msfconsole