Docker service commands
1) Run the container
docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root mysql
docker stop mysql
docker start mysql
3) commit the container
docker commit mysql
4) Save the image into the file
docker save -o mysql mysql
6) load the images into docker repo
docker load -i mysql
7) Running container terminal
docker exec -it mysql bash
Comments
Post a Comment