Assignment- Dockerfile-Build image with loaded MySQL schema
In this assignment we have to write Dockerfile from which we can build our require image to start the container to achive our target. Our target is whenever the container start we should see the database having students table containing your roll number, name and course.
I have used mysql image to build my customize image and to start the container.
1. make build => builds image from the Dockerfile
2. make run => create and start container from the built image
3. make exec => to go inside created container
4. make clean => deletes started container, built image
- Clone the project
- make build
- make run
- Please make sure that container is running successfully by using
docker ps
command - make exec
- make clean
Docker
Make