-
Notifications
You must be signed in to change notification settings - Fork 1
Containers
HOA PHAN edited this page Jun 29, 2023
·
9 revisions
Amazon Linux
cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
CentOs
docker run -it --rm centos /bin/bash
JDK Secured
eclipse-temurin:11-jdk-focal
To fuck with the network
docker run -it --privileged --cap-drop=ALL --cap-add=NET_BIND_SERVICE --cap-add=NET_ADMIN eclipse-temurin:11-jdk-focal bash
apt-get update && apt-get install -y net-tools
ifconfig -a
apt-get install -y iptables
#simulate firewall dropping
iptables -A OUTPUT -p tcp --dport 443 -d services.gradle.org -j DROP
iptables -A OUTPUT -p tcp --dport 443 -d github.com -j DROP
iptables -A OUTPUT -p tcp --dport 443 -d github.com -m string --string "/s50600822/conductor/tree/main" --algo bm -j DROP
Some popular images:
docker run --rm --name conductor --rm -p 5006:5005 -p 9000:8080 -p 5000:5000 -edb=memory -eworkflow.elasticsearch.instanceType=memory -eloadSample=false kayosportsau/netflixconductor:all-2019.0.108
docker run -d --rm --name elasticsearch -p 9200:9200 -p 9300:9300 -e discovery.type=single-node -e http.cors.enabled=true -e http.cors.allow-origin=http://localhost:1358,http://127.0.0.1:1358 -e http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -e http.cors.allow-credentials=true docker.elastic.co/elasticsearch/elasticsearch-oss:7.0.1
docker run -ePOSTGRES_PASSWORD=mydb -ePOSTGRES_USER=mydb -e POSTGRES_DB=mydb -p 5432:5432 -i --rm postgres
docker run -e MYSQL_ROOT_PASSWORD=conductor -eMYSQL_DATABASE=conductor -eMYSQL_USER=conductor -eMYSQL_PASSWORD=conductor mysql:5.6