AdGuard Home - Script executing error

pointer

New Member
This post is about AdGuard Home for Docker. I followed the instructions verbatim to 1. pull the image and 2. create directories. I ran into problem when I tried to create a container. The following commands are on multiple lines, but Windows PowerShell can only execute one line at a time.

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 68:68/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

Questions
1. If I execute the first line verbatim, there is error ""docker run" requires at least 1 argument." What should I replace "--name"?
2. How can I execute these multiple lines in one go?

Thank you.
 

ammnt

Beta Tester
This post is about AdGuard Home for Docker. I followed the instructions verbatim to 1. pull the image and 2. create directories. I ran into problem when I tried to create a container. The following commands are on multiple lines, but Windows PowerShell can only execute one line at a time.

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 68:68/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

Questions
1. If I execute the first line verbatim, there is error ""docker run" requires at least 1 argument." What should I replace "--name"?
2. How can I execute these multiple lines in one go?

Thank you.
1. You can set any name for this container
2. Try this in one row with custom container name:

Code:
docker run --name yourcontainername --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 68:68/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
 

pointer

New Member
1. You can set any name for this container
2. Try this in one row with custom container name:

Code:
docker run --name yourcontainername --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 68:68/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
Yes, it worked. Thank you.
 
Top