Sunday, 6 October 2024

Installing kali linux image with podman

Installing kali linux image with podman

1.      Install podman using yum

#yum install podman



To check version of the installed podman you can use “-v” or “--version”

# podman -v

(or)

#podman --version



To check if any container running use below command

# podman ps -a


We can also check same with podman container ls and to show already downloaded images podman image ls.

# podman container ls

#podman image ls


 To search if a particular image is available in the configured repositories.

# podman search kali-rolling


To download image from the repository.

# podman pull kali-rolling


To see if the image is downloaded.

# podman image ls


 To run the container

# podman run –tty –interactive kali-rolling

This command will connect to the tty terminal of the kali linux container. From this bash you can execute all kali linux commands.


 


To exit from the terminal you can give exit at the bash prompt.

Once exited container also will be stopped. To start the container we can use below command.

# podman start container_name


To login to the container you can use podman attach command as below,

# podman attach container_name




No comments:

Post a Comment