Skip to content

LINKIT-Group/cicd-jenkins-lab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cicd-jenkins-lab

Docker commands:

List running containers:
docker ps

SSH in to container:
docker exec -it <container.id> /bin/bash

SSH in to jenkins container:
docker exec -it $(docker ps | grep lab_jenkins | awk '{print $1}') /bin/bash

SSH in to jenkins container as root:
docker exec -u 0 -it $(docker ps | grep lab_jenkins | awk '{print $1}') /bin/bash

Stop op running containers and Delete all containers including not running containers and delete docker images:
sudo docker kill $(docker ps -q) && docker rm $(docker ps -a -q) && docker rmi -f $(docker images -q)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 82.3%
  • Shell 17.7%