![]() ![]() So where can i get login, password and ip-address to docker-container? > docker ps # Shows running containersĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESĠbd4e5f2d116 samples "nginx -g 'daemon. If you tell us more you can probably get a better answer.Īnyway, you can copy files from the container using docker cp docker cp CONTAINER:SRC_PATH DEST_PATHĪnd you can run commands with docker exec and even start up a shell to make changes (this is pretty much the "docker ssh" you are asking for - but it's not intended for your IDE to connect and make changes with): docker exec -it bash It's more likely that you actually want to mount your own project into said container that is running a web-server or php etc. Having a container for the sole purpose of distributing a "non-running" php-storm project sounds weird. ![]() Consider a container's resources to be encapsulated and for a reason. Yes, you can run a SSH service inside your container so you can connect to it, but if that's not the containers main purpose then I'd advice against it. You build a container to run it, not to distribute projects for others to edit. Well, it's not impossible, but I think the workflow is upside down. ![]()
0 Comments
Leave a Reply. |