Trying to build cowrie docker image #1044
Unanswered
leo-mercier
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Use the one from the 22.x branch. However this version of Cowrie is tailored for T-Pot and you must have the correct paths in place as setup in the docker-compose.yml. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, im trying to "docker build -t cowrie ." in the tpotce/docker/cowrie folder but i got this error after the build when a try to run (cmd: docker run --name testcowrie cowrie):
i want to build only the cowrie honeypot with the tpot configuration. Do you have some reponse or advise for me ?
`2022-03-22T13:28:42+0000 [-] Python Version 3.9.5 (default, Nov 24 2021, 21:19:13) [GCC 10.3.1 20210424]
2022-03-22T13:28:42+0000 [-] Twisted Version 21.7.0
2022-03-22T13:28:42+0000 [-] Cowrie Version 2.3.0
2022-03-22T13:28:42+0000 [-] Loaded output engine: jsonlog
2022-03-22T13:28:42+0000 [twisted.scripts._twistd_unix.UnixAppLogger#info] twistd 21.7.0 (/usr/bin/python3 3.9.5) starting up.
2022-03-22T13:28:42+0000 [twisted.scripts._twistd_unix.UnixAppLogger#info] reactor class: twisted.internet.epollreactor.EPollReactor.
2022-03-22T13:28:42+0000 [-] Failed to unlink PID file:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/twisted/scripts/twistd.py", line 30, in runApp
runner.run()
File "/usr/lib/python3.9/site-packages/twisted/application/app.py", line 376, in run
self.postApplication()
File "/usr/lib/python3.9/site-packages/twisted/scripts/_twistd_unix.py", line 262, in postApplication
self.removePID(self.config["pidfile"])
File "/usr/lib/python3.9/site-packages/twisted/scripts/_twistd_unix.py", line 288, in removePID
log.err(e, "Failed to unlink PID file:")
--- ---
File "/usr/lib/python3.9/site-packages/twisted/scripts/_twistd_unix.py", line 283, in removePID
os.unlink(pidfile)
builtins.FileNotFoundError: [Errno 2] No such file or directory: '/tmp/cowrie/cowrie.pid'
2022-03-22T13:28:42+0000 [stderr#error] Traceback (most recent call last):
2022-03-22T13:28:42+0000 [stderr#error] File "/usr/bin/twistd", line 8, in
2022-03-22T13:28:42+0000 [stderr#error] sys.exit(run())
2022-03-22T13:28:42+0000 [stderr#error] File "/usr/lib/python3.9/site-packages/twisted/scripts/twistd.py", line 36, in run
2022-03-22T13:28:42+0000 [stderr#error] app.run(runApp, ServerOptions)
2022-03-22T13:28:42+0000 [stderr#error] File "/usr/lib/python3.9/site-packages/twisted/application/app.py", line 676, in run
2022-03-22T13:28:42+0000 [stderr#error] runApp(config)
2022-03-22T13:28:42+0000 [stderr#error] File "/usr/lib/python3.9/site-packages/twisted/scripts/twistd.py", line 30, in runApp
2022-03-22T13:28:42+0000 [stderr#error] runner.run()
2022-03-22T13:28:42+0000 [stderr#error] File "/usr/lib/python3.9/site-packages/twisted/application/app.py", line 376, in run
2022-03-22T13:28:42+0000 [stderr#error] self.postApplication()
2022-03-22T13:28:42+0000 [stderr#error] File "/usr/lib/python3.9/site-packages/twisted/scripts/_twistd_unix.py", line 255, in postApplication
2022-03-22T13:28:42+0000 [stderr#error] self.startApplication(self.application)
2022-03-22T13:28:42+0000 [stderr#error] File "/usr/lib/python3.9/site-packages/twisted/scripts/_twistd_unix.py", line 437, in startApplication
2022-03-22T13:28:42+0000 [stderr#error] self.setupEnvironment(
2022-03-22T13:28:42+0000 [stderr#error] File "/usr/lib/python3.9/site-packages/twisted/scripts/_twistd_unix.py", line 330, in setupEnvironment
2022-03-22T13:28:42+0000 [stderr#error] with open(pidfile, "wb") as f:
2022-03-22T13:28:42+0000 [stderr#error] FileNotFoundError: [Errno 2] No such file or directory: '/tmp/cowrie/cowrie.pid'`
Beta Was this translation helpful? Give feedback.
All reactions