How to start a docker daemon manually

0 votes

I need to configure my docker daemon with certain options and start it in debugging mode. How to do it manually without having to specify the configurations in the daemon.json ?

Jul 9, 2019 in Docker by Naina
12,523 views

1 answer to this question.

+1 vote

The daemon includes many configuration options, which you can pass as flags when starting Docker manually, or set in the daemon.json configuration file.

To start the Docker daemon manually with some configuration options:

$ dockerd -D --tls=true --tlscert=/var/docker/server.pem --tlskey=/var/docker/serverkey.pem -H tcp://192.168.59.3:2376

This command enables debugging (-D), enables TLS (-tls), specifies the server certificate and key (--tlscert and --tlskey), and specifies the network interface where the daemon listens for connections (-H).

answered Jul 9, 2019 by Sirajul
• 59,230 points
i am getting the below error when i ran this

chmod /var/lib/docker: operation not permitted

can you plese help on this query.

If you are running containers with Docker, it implies running the Docker daemon. This daemon currently requires root privileges. To avoid this try to run with root access or set permission for that file.

$ chmod +x /var/lib/docker

Related Questions In Docker

+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 34,151 views
0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 10,620 points
3,523 views
0 votes
2 answers

How to execute docker exec commande inside a docker container ?

You need to get inside the container ...READ MORE

answered Aug 13, 2019 in Docker by Sirajul
• 59,230 points
3,800 views
0 votes
1 answer

How to continue running a docker container which is already exited?

Restart an existing container after you exited ...READ MORE

answered Jul 19, 2018 in Docker by Sophie may
• 10,620 points
2,539 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,720 views
0 votes
2 answers
+1 vote
2 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP