# build Jenkins container using Dockerfile
docker build -t <container_name:tag> .
# run simple container - no docker
docker run -p <host_port:8080> <container_name:tag>
# create custom user and passwd with enviromental variable
docker run -p <host_port:8080> -e ENV_USER=<username> -e ENV_PASSWD=<pw> <container_name:tag>
Open browser: http://localhost:<host_port>
- admin user created with generated password if user does not exist
- you can create your own user with env variables
- you can add default plugins to plugins.txt that are installed during creation