4.0.0 org.springframework gs-spring-boot-docker 0.1.0 org.springframework.boot spring-boot-starter-parent 2.0.5.RELEASE 1.8 org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test test org.springframework.boot spring-boot-maven-plugin. ![]() Expected behavior Should be able to exist the container on pressing ctrl P+Q Actual behavior On being attached to the Detached container, unable to exit the container. Information • I'm running a Docker version(Docker version 17.03.1-ce, build c6d412e) on mac,& i m facing an issue on exiting the container on attaching it manually, Steps to reproduce are mentioned below Steps to reproduce the behavior • Create a docker file & script (as enclosed) FROM ubuntu MAINTAINER [email protected] WORKDIR /home/app/ COPY test.sh /home/app/. EXPOSE 8080 CMD./test.sh test.sh script as follows:- while(1>0) do date sleep 3 done • Run the build command to create an Image (eg: docker build -t ubuntu_16.04.) • Run the container in detached mode (eg: docker run -d ubuntu_16.04) • Attach to the container ( eg: docker attach ) • Once attached to the container, able to see the output of script & unable to exit the container even on pressing ctrl P+Q. If you're running Windows or Mac, Docker Compose is already installed as it comes in the Docker Toolbox. $ docker container ls CONTAINER ID IMAGE.
0 Comments
Leave a Reply. |