Docker and Intellij IDe

0

My problems is I need to do the deployment of a Java app, I have my DockerFile ok, but the problem is that when I'm creating the run docker configuration in the help window only in the deployment section only aparace an option that brings by defeco that is docker image and my dockerfile does not appear to me nor gives me any option to select it. the version of my intellij is

  

community edition 2017.2 EAP   

and also every time I make a change to be able to see it I have to delete all the containers and the images, and recreate the docker images and I have to wait for everything to be downloaded again

    
asked by Jorge E. 09.07.2017 в 18:33
source

1 answer

0

In the option of deployment of Intellij asks you to select the image you want to "display", that image is what you build with your software, for example when you do:

docker build -t  name_image:tag  path_dockerfile

Select it and find the path of your Dockerfile and if it asks for the image, try to pass it according to the name given by the command.

docker images

Also check that Intellij contains the docker integration plugin, you can follow the following tutorial to perform run/debug of Docker images Run / Debug Configuration: Docker Deployment . Regarding the need to remove the images and containers, remember that if you make a change in the image you must build the image with:

docker build

If you configure shared volumes it is not necessary to build, you can see the changes reflected in your container. I think it would be nice to review the first steps of Docker Docker getting started

    
answered by 13.07.2017 в 03:32