Reputation: 113
I try to install Docker on an offline (completely offline for security reasons) W7 PC. But the install process is heavily dependent on the net....are there any standalone versions to be found or are there any other workarounds.....wwould really like to get this to work.
Upvotes: 9
Views: 9838
Reputation: 2756
steps to deploy and run project using Docker:
first install the docker in your machine. Because Docker is linux based environment then for windows it will give you docker with virtual machine “hyper-V Manager”. Download whole package for windows and install it: https://hub.docker.com/editions/community/docker-ce-desktop-windows
once its install check it with following commands: https://docs.docker.com/docker-for-windows/
docker –version docker container ls –all
Add docker plugin in pom.xml and run following command to make image inside docker container: mvn package docker:build https://www.tutorialspoint.com/spring_boot/spring_boot_creating_docker_image.htm
check all images :
docker image ls
docker run your_image_id
it will run same like your spring project run only the port will be change like for me the changed port is
Run your project apis from postman like bellow:
Upvotes: -3
Reputation: 2512
Haven't seen any standalone setup for Docker in windows but Docker Toolbox is what can help you achieve this.
Docker Toolbox provides a way to use Docker on Windows systems, even older that do not meet minimal system requirements for the Docker for Windows app.
Docker Toolbox includes the following Docker tools:
Docker CLI client for running Docker Engine to create images and containers
Docker Machine so you can run Docker Engine commands from Windows terminals
Docker Compose for running the docker-compose command Kitematic, the Docker GUI
the Docker QuickStart shell preconfigured for a Docker command-line environment
Oracle VM VirtualBox
Update:- In case you don't have boot2docker with the installation and system tries to download it on creating docker machine, you can manually download it from https://api.github.com/repos/boot2docker/boot2docker/releases/latest, have it on your offline system and manually place it at C:\Users\user_name\.docker\machine\cache
and it should work.
Note: Check for the appropriate version of boot2docker for your Docker Toolbox
Upvotes: 10