Hosting a Docker Container on AWS EC2 Free Tier in under 12 minutes

  Рет қаралды 69,909

Vincent Stevenson

Vincent Stevenson

Күн бұрын

Пікірлер: 62
@biwanthabhanuka521
@biwanthabhanuka521 18 күн бұрын
Struggling for days to find a proper tutorial online, but this guy is direct and saved me!
@VincentStevenson
@VincentStevenson 18 күн бұрын
I’m glad the video helped!
@adityagunjal7104
@adityagunjal7104 5 ай бұрын
Rare chance you're reading this but this video was so helpful as a beginner, can't thank you enough ❤❤
@VincentStevenson
@VincentStevenson 5 ай бұрын
Glad it helped!
@jorgeterence577
@jorgeterence577 4 ай бұрын
As a complete beginner to AWS but experienced in programming in general, this video was a perfect fit. Thank you a lot! :)
@bhairavkedare9074
@bhairavkedare9074 8 ай бұрын
i was today years old until i got to know using scp was best option to share files this easily !! great job!
@GeorgeDonnelly
@GeorgeDonnelly 11 ай бұрын
Straightforward, clear tutorial. This was really helpful, thanks. Subscribed.
@WorldCollections
@WorldCollections 4 күн бұрын
Nice to hear there are other ways. Great tutorial.
@yawmintah1023
@yawmintah1023 6 ай бұрын
You're a genius Vincent🤩❤. Incase having issues accessing through a different port, simply set to use port 80
@joetrades2472
@joetrades2472 4 ай бұрын
Brother you literally saved my life!! I was kinda fucked, tried lots of options yours was the only one that worked. God bless you and your family. Btw, run sudo yum -y install docker
@nickname8668
@nickname8668 8 ай бұрын
Just curious, why cannot you dockerize the file locally and upload it to the ec2? I thought docker was supposed to be multi-platform and allow you to dockerize in a different environment?
@phucvu1924
@phucvu1924 2 ай бұрын
same question, do you have any idea?
@hahaok_
@hahaok_ Жыл бұрын
thank you so much for this upload! had to make one adjustment to be ablte to run it: apperently you install docker with this command now: sudo yum -y install docker
@najbighouse
@najbighouse Жыл бұрын
thanks!! wasn't able to do it with the sudo amazon-linux-extras install docker
@hahaok_
@hahaok_ Жыл бұрын
im glad i could help someone with my comment! @@najbighouse
@thanhannguyen2565
@thanhannguyen2565 6 ай бұрын
thank you, you save my day
@giselletech
@giselletech 4 ай бұрын
thank you!
@kevon217
@kevon217 Жыл бұрын
Great, quick tutorial. Really appreciate it.
@najbighouse
@najbighouse Жыл бұрын
what about doing this with docker-compose? which would be the steps for it?
@ericferole7972
@ericferole7972 Жыл бұрын
Hi Vincent, Thank for you tutorial. Regarding the files you upload, let's say I have a Django project with many more files. How would you proceed? Thank you !
@knunn552
@knunn552 2 ай бұрын
I’m deploying a containerized app to AWS ECS using the awsvpc network mode, and I noticed a potential discrepancy between my local Docker setup and the ECS task definition. Locally, I use port mappings like 80:8080 (host:container), but in the ECS task definition, I plan to use 8080:8080 since awsvpc requires the host and container ports to match. Will this difference cause any connection issues when testing locally vs deploying to ECS? Also, is there a best practice for handling such port mapping differences between local and cloud environments?
@jordanfox3782
@jordanfox3782 Жыл бұрын
thanks for the video. I wonder if you could give more details about why you chose to copy the dockerfile and build the image on your ec2, rather than pulling down the image from dockerhub or some other registry and running the container which I would have thought is way more usual approach.
@VincentStevenson
@VincentStevenson Жыл бұрын
Good question - my main reason was to keep it on the free tier and stay simple enough for a relatively short video. But yes, for a more practical setup, using a container registry is better and I would do that.
@Ignited
@Ignited 2 ай бұрын
Thank you very much for the tutorial! I was following along (on a windows11 device) and I have my dockerfile uploaded on the ec2 instance, however after I execute the docker run command, there is nothing in the results of sudo docker ps, neither does the ip with the opened port 80 lead to anything. Any idea what it could be?
@testtest-c4z
@testtest-c4z 4 ай бұрын
Very good video! I have a question for you, should the .php files or even an .env be in the same var/www/html folder or outside of it so that it is not accessible from the web? Should they be in another vpc? Thank you so much!
@21Million
@21Million 5 ай бұрын
My EC2 instance did not have the amazon-linux-extras on it. Gotta use regular yum install command.
@vicinaljordan
@vicinaljordan 3 ай бұрын
Hello, i have a problem with my docker image. Now it kill itself and the last thing in the log is "killed". I read about it and it seem a ram problem. I'm using nginx and a docker image on my ec2. Is it correct that is probably a ram issue?
@ravitejalam
@ravitejalam Жыл бұрын
Great video. I have a question. Why you didn't you use gunicorn and nginx?
@TheRFreyre
@TheRFreyre Жыл бұрын
Pretty cool. Thanks. Wouldn't cloning from github be easier?
@tintintintin576
@tintintintin576 10 ай бұрын
this video helped me big time! thank you so much! :)
@midicine2114
@midicine2114 3 ай бұрын
At what point would one introduce a web server like nginx or is that not needed?
@geeekfa3278
@geeekfa3278 Жыл бұрын
You are awesome Vincent
@nicolassuarez2933
@nicolassuarez2933 8 ай бұрын
Really strugling trying to atach a volume of 30gb to this instace, running out of space all the time., any tip?
@MyRonniej
@MyRonniej 9 ай бұрын
hello new here was there a prerequisite video before this video explaining the terminal before you got started
@cooperfield45
@cooperfield45 10 ай бұрын
very helpful tutorial! thanks man
@windws7137
@windws7137 8 ай бұрын
Thank you, amazing tutorial, based
@nostalgia6669
@nostalgia6669 3 ай бұрын
wow, amazing! thank you so much°!
@xinose2085
@xinose2085 2 ай бұрын
What editor is that
@VincentStevenson
@VincentStevenson 2 ай бұрын
Pycharm
@uzzielperez4316
@uzzielperez4316 Жыл бұрын
Thanks very much for this!
@crucialthings8397
@crucialthings8397 2 ай бұрын
Thanks a lot!❤
@christoff124
@christoff124 5 ай бұрын
scp keeps throwing an error when im trying to upload says the sytax you provided is incorrect
@eternalio1729
@eternalio1729 Жыл бұрын
hey what ide do you use?
@najbighouse
@najbighouse Жыл бұрын
pycharm
@eternalio1729
@eternalio1729 Жыл бұрын
What themes?
@PeshelGomo
@PeshelGomo Жыл бұрын
Hey man. Thanks for this.
@krish4659
@krish4659 10 ай бұрын
Thanks ! that was helpful
@anasouardini
@anasouardini Жыл бұрын
Be careful with that resource-hungry docker container.
@vinestervega19
@vinestervega19 3 ай бұрын
Could you explain more?
@mihirdutta-DPSi
@mihirdutta-DPSi Жыл бұрын
4:33 Change permission to avoid `sudo`
@muhammadhadziqrazin7213
@muhammadhadziqrazin7213 Жыл бұрын
yes and perhaps you should re-connect to the instance to make it works!
@lillious
@lillious Ай бұрын
sudo: amazon-linux-extras: command not found damn that's crazy
@tomstalley3179
@tomstalley3179 Жыл бұрын
Thank you!
@MisterRyanW
@MisterRyanW 9 ай бұрын
Thank you!!!!!!!!
@saifeddinesassi2782
@saifeddinesassi2782 11 ай бұрын
I was charged around 0.1$ daily when it create the default VPC
@glitchbug3728
@glitchbug3728 8 ай бұрын
its eip cost,release it
@thecloud5831
@thecloud5831 Ай бұрын
There are easier ways to do the deployement
@Nick-zw7gg
@Nick-zw7gg 3 ай бұрын
Why don't you just sudo !!
@windws7137
@windws7137 9 ай бұрын
It builds a container but doesn't show up in the website address , how to fix it ? solution: docker kill $(docker ps -q) docker start -ai container_name or run a new one from image sudo docker run -d -p 80:3000 adguard/adguardhome
@windws7137
@windws7137 9 ай бұрын
These are the commands sudo yum upgrade sudo amazon-linux-extras install docker -y sudo service docker start sudo usermod -a -G docker $USER Disable Systemd resolver: sudo systemctl stop systemd-resolved sudo systemctl disable systemd-resolved docker run --name adguardhome\ --restart unless-stopped\ -v /my/own/workdir:/opt/adguardhome/work\ -v /my/own/confdir:/opt/adguardhome/conf\ -p 53:53/tcp -p 53:53/udp\ -p 67:67/udp\ -p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp\ -p 853:853/tcp\ -p 784:784/udp -p 853:853/udp -p 8853:8853/udp\ -p 5443:5443/tcp -p 5443:5443/udp\ -d adguard/adguardhome It doesn't show up int he IP address
Learn Docker & Deploy to AWS - Beginner Tutorial
12:46
Be A Better Dev
Рет қаралды 16 М.
How I deploy serverless containers for free
6:33
Beyond Fireship
Рет қаралды 596 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Top 50+ AWS Services Explained in 10 Minutes
11:46
Fireship
Рет қаралды 1,6 МЛН
If you're not developing with this, you're wasting your time
14:30
Articulated Robotics
Рет қаралды 317 М.
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
TechWorld with Nana
Рет қаралды 2 МЛН
18 Weird and Wonderful ways I use Docker
26:18
NetworkChuck
Рет қаралды 488 М.
How to Deploy a Docker App to AWS ECS
24:18
Laith Academy
Рет қаралды 118 М.
Best Docker Containers in 2024
12:43
VirtualizationHowto
Рет қаралды 182 М.
How to Deploy ML Solutions with FastAPI, Docker, & AWS
28:48
Shaw Talebi
Рет қаралды 27 М.
Understanding Amazon ECS for running Docker Containers
8:38
Digital Cloud Training
Рет қаралды 2,3 М.
100+ Docker Concepts you Need to Know
8:28
Fireship
Рет қаралды 1,1 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН