CentOS is hangling all the time when trying to enable the docker instace
I am new to Docker
world. Installed Docker
on centOS-7
and contineously facing the below error. I installed docker-composed
with the following commands
I did everthing mentioned here: Cannot connect to the Docker daemon. Is the docker daemon running on this host?, but it did not work for me having CentOs box.
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Nect step
sudo chmod +x /usr/local/bin/docker-compose
Next Step
sudo groupadd docker
sudo gpasswd -a $USER docker
sudo usermod -aG docker $USER
sudo usermod -aG docker $(whoami)
sudo systemctl enable docker.service
Now when I performed the very last command, centOS machine got hang even after rebbot VM is not getting up. I can't ping to that machine.
I've posted each logs of step-
[user@vannila ~]$ sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
[sudo] password for dc-user:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 1527 0 --:--:-- --:--:-- --:--:-- 1531
100 11.2M 100 11.2M 0 0 1388k 0 0:00:08 0:00:08 --:--:-- 1822k
[user@vannila ~]$ sudo chmod +x /usr/local/bin/docker-compose
[user@vannila ~]$ sudo groupadd docker
groupadd: group 'docker' already exists
[user@vannila ~]$ sudo gpasswd -a $USER docker
Adding user dc-user to group docker
[user@vannila ~]$ sudo usermod -aG docker $USER
[user@vannila ~]$ sudo service docker status
Redirecting to /bin/systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: https://docs.docker.com
[user@vannila ~]$ sudo usermod -aG docker $(whoami)
[user@vannila ~]$ sudo systemctl enable docker.service
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[user@vannila ~]$ sudo systemctl start docker.service
Let me know if you need any other details.
docker centos docker-compose
add a comment |
I am new to Docker
world. Installed Docker
on centOS-7
and contineously facing the below error. I installed docker-composed
with the following commands
I did everthing mentioned here: Cannot connect to the Docker daemon. Is the docker daemon running on this host?, but it did not work for me having CentOs box.
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Nect step
sudo chmod +x /usr/local/bin/docker-compose
Next Step
sudo groupadd docker
sudo gpasswd -a $USER docker
sudo usermod -aG docker $USER
sudo usermod -aG docker $(whoami)
sudo systemctl enable docker.service
Now when I performed the very last command, centOS machine got hang even after rebbot VM is not getting up. I can't ping to that machine.
I've posted each logs of step-
[user@vannila ~]$ sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
[sudo] password for dc-user:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 1527 0 --:--:-- --:--:-- --:--:-- 1531
100 11.2M 100 11.2M 0 0 1388k 0 0:00:08 0:00:08 --:--:-- 1822k
[user@vannila ~]$ sudo chmod +x /usr/local/bin/docker-compose
[user@vannila ~]$ sudo groupadd docker
groupadd: group 'docker' already exists
[user@vannila ~]$ sudo gpasswd -a $USER docker
Adding user dc-user to group docker
[user@vannila ~]$ sudo usermod -aG docker $USER
[user@vannila ~]$ sudo service docker status
Redirecting to /bin/systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: https://docs.docker.com
[user@vannila ~]$ sudo usermod -aG docker $(whoami)
[user@vannila ~]$ sudo systemctl enable docker.service
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[user@vannila ~]$ sudo systemctl start docker.service
Let me know if you need any other details.
docker centos docker-compose
Do you have SELinux enabled on this machine? Regardless, you may needcontainer-selinux
. Also, did you installDocker
itself prior to thedocker-compose
? In any event, I think you will need to boot into single user mode from grub by editing the boot, and you can then disable the docker.service. After a reboot, you can look at log files. As this question stands, without some log files, I'm not sure how we can help.
– KevinO
Nov 17 '18 at 6:28
1
"Let me know if you need any other details." - Does this have anything to do Java?
– Stephen C
Nov 17 '18 at 7:26
@ KevinO - I did not quite followed you. Could you please let me know what exact I need to check ? Linux commands would help me.
– PAA
Nov 17 '18 at 7:30
add a comment |
I am new to Docker
world. Installed Docker
on centOS-7
and contineously facing the below error. I installed docker-composed
with the following commands
I did everthing mentioned here: Cannot connect to the Docker daemon. Is the docker daemon running on this host?, but it did not work for me having CentOs box.
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Nect step
sudo chmod +x /usr/local/bin/docker-compose
Next Step
sudo groupadd docker
sudo gpasswd -a $USER docker
sudo usermod -aG docker $USER
sudo usermod -aG docker $(whoami)
sudo systemctl enable docker.service
Now when I performed the very last command, centOS machine got hang even after rebbot VM is not getting up. I can't ping to that machine.
I've posted each logs of step-
[user@vannila ~]$ sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
[sudo] password for dc-user:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 1527 0 --:--:-- --:--:-- --:--:-- 1531
100 11.2M 100 11.2M 0 0 1388k 0 0:00:08 0:00:08 --:--:-- 1822k
[user@vannila ~]$ sudo chmod +x /usr/local/bin/docker-compose
[user@vannila ~]$ sudo groupadd docker
groupadd: group 'docker' already exists
[user@vannila ~]$ sudo gpasswd -a $USER docker
Adding user dc-user to group docker
[user@vannila ~]$ sudo usermod -aG docker $USER
[user@vannila ~]$ sudo service docker status
Redirecting to /bin/systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: https://docs.docker.com
[user@vannila ~]$ sudo usermod -aG docker $(whoami)
[user@vannila ~]$ sudo systemctl enable docker.service
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[user@vannila ~]$ sudo systemctl start docker.service
Let me know if you need any other details.
docker centos docker-compose
I am new to Docker
world. Installed Docker
on centOS-7
and contineously facing the below error. I installed docker-composed
with the following commands
I did everthing mentioned here: Cannot connect to the Docker daemon. Is the docker daemon running on this host?, but it did not work for me having CentOs box.
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Nect step
sudo chmod +x /usr/local/bin/docker-compose
Next Step
sudo groupadd docker
sudo gpasswd -a $USER docker
sudo usermod -aG docker $USER
sudo usermod -aG docker $(whoami)
sudo systemctl enable docker.service
Now when I performed the very last command, centOS machine got hang even after rebbot VM is not getting up. I can't ping to that machine.
I've posted each logs of step-
[user@vannila ~]$ sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
[sudo] password for dc-user:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 1527 0 --:--:-- --:--:-- --:--:-- 1531
100 11.2M 100 11.2M 0 0 1388k 0 0:00:08 0:00:08 --:--:-- 1822k
[user@vannila ~]$ sudo chmod +x /usr/local/bin/docker-compose
[user@vannila ~]$ sudo groupadd docker
groupadd: group 'docker' already exists
[user@vannila ~]$ sudo gpasswd -a $USER docker
Adding user dc-user to group docker
[user@vannila ~]$ sudo usermod -aG docker $USER
[user@vannila ~]$ sudo service docker status
Redirecting to /bin/systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: https://docs.docker.com
[user@vannila ~]$ sudo usermod -aG docker $(whoami)
[user@vannila ~]$ sudo systemctl enable docker.service
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[user@vannila ~]$ sudo systemctl start docker.service
Let me know if you need any other details.
docker centos docker-compose
docker centos docker-compose
edited Nov 17 '18 at 8:27
asked Nov 17 '18 at 6:14
PAA
2,48221935
2,48221935
Do you have SELinux enabled on this machine? Regardless, you may needcontainer-selinux
. Also, did you installDocker
itself prior to thedocker-compose
? In any event, I think you will need to boot into single user mode from grub by editing the boot, and you can then disable the docker.service. After a reboot, you can look at log files. As this question stands, without some log files, I'm not sure how we can help.
– KevinO
Nov 17 '18 at 6:28
1
"Let me know if you need any other details." - Does this have anything to do Java?
– Stephen C
Nov 17 '18 at 7:26
@ KevinO - I did not quite followed you. Could you please let me know what exact I need to check ? Linux commands would help me.
– PAA
Nov 17 '18 at 7:30
add a comment |
Do you have SELinux enabled on this machine? Regardless, you may needcontainer-selinux
. Also, did you installDocker
itself prior to thedocker-compose
? In any event, I think you will need to boot into single user mode from grub by editing the boot, and you can then disable the docker.service. After a reboot, you can look at log files. As this question stands, without some log files, I'm not sure how we can help.
– KevinO
Nov 17 '18 at 6:28
1
"Let me know if you need any other details." - Does this have anything to do Java?
– Stephen C
Nov 17 '18 at 7:26
@ KevinO - I did not quite followed you. Could you please let me know what exact I need to check ? Linux commands would help me.
– PAA
Nov 17 '18 at 7:30
Do you have SELinux enabled on this machine? Regardless, you may need
container-selinux
. Also, did you install Docker
itself prior to the docker-compose
? In any event, I think you will need to boot into single user mode from grub by editing the boot, and you can then disable the docker.service. After a reboot, you can look at log files. As this question stands, without some log files, I'm not sure how we can help.– KevinO
Nov 17 '18 at 6:28
Do you have SELinux enabled on this machine? Regardless, you may need
container-selinux
. Also, did you install Docker
itself prior to the docker-compose
? In any event, I think you will need to boot into single user mode from grub by editing the boot, and you can then disable the docker.service. After a reboot, you can look at log files. As this question stands, without some log files, I'm not sure how we can help.– KevinO
Nov 17 '18 at 6:28
1
1
"Let me know if you need any other details." - Does this have anything to do Java?
– Stephen C
Nov 17 '18 at 7:26
"Let me know if you need any other details." - Does this have anything to do Java?
– Stephen C
Nov 17 '18 at 7:26
@ KevinO - I did not quite followed you. Could you please let me know what exact I need to check ? Linux commands would help me.
– PAA
Nov 17 '18 at 7:30
@ KevinO - I did not quite followed you. Could you please let me know what exact I need to check ? Linux commands would help me.
– PAA
Nov 17 '18 at 7:30
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53348749%2fcentos-is-hangling-all-the-time-when-trying-to-enable-the-docker-instace%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53348749%2fcentos-is-hangling-all-the-time-when-trying-to-enable-the-docker-instace%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you have SELinux enabled on this machine? Regardless, you may need
container-selinux
. Also, did you installDocker
itself prior to thedocker-compose
? In any event, I think you will need to boot into single user mode from grub by editing the boot, and you can then disable the docker.service. After a reboot, you can look at log files. As this question stands, without some log files, I'm not sure how we can help.– KevinO
Nov 17 '18 at 6:28
1
"Let me know if you need any other details." - Does this have anything to do Java?
– Stephen C
Nov 17 '18 at 7:26
@ KevinO - I did not quite followed you. Could you please let me know what exact I need to check ? Linux commands would help me.
– PAA
Nov 17 '18 at 7:30