dev container on remote server

install docker on remote server

๋ฆฌ๋ชจํŠธ ์„œ๋ฒ„์— docker๋ฅผ ์„ค์น˜ํ•ด์•ผํ•œ๋‹ค.

vs code์—์„œ remote server์— ssh๋ฅผ ์ด์šฉํ•˜์—ฌ ์ ‘์†

Alt text

์ด๊ฑธ ๋ˆŒ๋Ÿฌ์„œ ssh๋ฅผ ์ด์šฉํ•˜์—ฌ ์ ‘์†ํ•œ๋‹ค.

Alt text
Alt text
Alt text

ํด๋”๋ฅผ ์—ฐ๋‹ค.

Alt text

Reopen in Container

ํ”„๋กœ์ ํŠธ๋ฅผ vscode๋กœ ์—ฐ๋‹ค.

cmd + shift + p > Dev Containers: Reopen in Container

๊ธฐ์กด ๊ธ€์—์„œ ์„ค๋ช…ํ•œ๋Œ€๋กœ ์‚ฌ์šฉํ•˜๋ฉด๋œ๋‹ค

์ด์ œ๋ถ€ํ„ฐ ์ž๋™์œผ๋กœ ๋ฆฌ๋ชจํŠธ ์„œ๋ฒ„์— docker๋ฅผ ์ด์šฉํ•ด์„œ ๊ฐœ๋ฐœํ• ์ˆ˜ ์žˆ๋‹ค.

Last updated

Was this helpful?