VSCode - Develop Inside a Docker Container

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
good morning did you know that you can develop envious code inside of the docker container the main benefit of this approach is that everyone will have a unified development environment so there won't be this works on my machine problem I'm gonna use an example app from the previous video it already has the docker file and first thing we need to do is to install the remote development extension so open the I command palette install extensions search for remote the command click install you will see this icon in the bottom of your vs code if you click it it will bring in the remote development command palette and here peek ad development container configuration files we already have a docker file so I choose from docker file open the Deaf container Jason configuration file that was generated by this code I will rename the container to JSON server Deb my application runs on port 4000 in the docker file also exports exposed this port so inside that container I will need to forward the ports and and forward the import 4000 on host machine to port 4000 on doctor machine now we can open the project in the docker bring the command palette and say reopen in container now if you open the terminal you should see that you're connected to the container instance now I can run the server node index DOJ's the back end is running on port 4000 now I can curl it 4 nodes and it will return me the list of the nodes that is stores in the Bay database let's go to index the GS and let's add and you route up get route callback is request response and we what want to response send a text message hello remote containers I'm restarting the server and if I open this page in the browser I will see this hello remote containers message so it works if you run docker PS this command shows all the running containers you will also see your basecoat docker container running there as well thank you for watching this video leave the comment below if you want to know more about docker containers and development using remove the remote containers extension and join my discreet server to pick the topics for the next videos see you next time
Info
Channel: Maksim Ivanov
Views: 59,980
Rating: undefined out of 5
Keywords: docker, vscode docker remote, vscode docker, vscode, visual studio code, vscode docker development, vscode remote development docker
Id: mi8kpAgHYFo
Channel Id: undefined
Length: 2min 33sec (153 seconds)
Published: Thu Jun 18 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.