docker network create mynet
docker run --name mydb --network mynet -e MYSQL_ROOT_PASSWORD=rundeckpassword -e MYSQL_USER=rundeckuser -e MYSQL_PASSWORD=rundeckpassword -v /home/anas/rundeck/dbdata:/var/lib/mysql -d mysql:latest
docker exec -it mydb mysql -u root -p
create database rundeck;
grant all privileges on *.* to 'rundeckuser'@'%';
flush privileges;
exit;
docker build -t rundeck .
docker run -it -p3306:3306 -p4440:4440 --network=mynet --name myrundeck -d rundeck:latest
http://your-ip:4440
admin:admin