0

I'm running some bash codes from python using subprocess module, E.G.

import subprocess
container_logs = 'az container logs --name textgeneratorinference'

subprocess.call([container_logs],shell=True)

From there I get a 0 response meaning the code was executed, but when I run the same come in the terminal I get a message E.G:

Login Succeeded
WARNING! Your password will be stored unencrypted in .
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

How can I get this into a python variable?

Luis Ramon Ramirez Rodriguez
  • 9,591
  • 27
  • 102
  • 181

0 Answers0