Skip to main content

Docker Points to Remember



                                Docker service commands


1)  Run the container

            docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root mysql

2) Stop/Start  the container
          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