Page 4 of 4 FirstFirst ... 234
Results 31 to 39 of 39

Thread: Installing Docker on 16.04

  1. #31
    Join Date
    Jun 2019
    Beans
    21

    Re: Installing Docker on 16.04

    How do I find out the <container id>
    to run firs command

  2. #32
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Installing Docker on 16.04

    Thankfully I'm not required to run any docker containers yet.
    See what this outputs:
    Code:
    docker images
    Or even:
    Code:
    docker ls
    docker ps -a 
    Last edited by 1fallen; 2 Weeks Ago at 06:30 PM. Reason: added code
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  3. #33
    Join Date
    Jun 2019
    Beans
    21

    Re: Installing Docker on 16.04

    Greetings

    Code:
    root@vps51801:~# docker images
    Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

  4. #34
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Installing Docker on 16.04

    Give me about 1 hr or so, I'm working with one of the devs now.
    for what it's worth I'm running into the same issues as you are.
    What kernel are your running now:
    Code:
    uname -r
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  5. #35
    Join Date
    Jun 2019
    Beans
    21

    Re: Installing Docker on 16.04

    Greetings

    Code:
      
    2.6.32-042stab127.2

  6. #36
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Installing Docker on 16.04

    Quote Originally Posted by tichman12 View Post
    Greetings

    Code:
      
    2.6.32-042stab127.2
    Well I now know what your problem is>>docker-ce needs Version 3.10 or higher of the Linux kernel.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  7. #37
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Installing Docker on 16.04

    Well I was able to fix mine, and I'm not sure my method will work for you with your kernel version, but mine went step for step <<<>>> this was important so follow exactly as below:
    Code:
    sudo apt remove --purge docker-ce
    sudo apt autoremove
    Close Terminal and open a New one:
    Code:
    sudo apt remove runc ##<<run one line at a time
    sudo rm -rf /lib/systemd/system/docker.service
    sudo rm -rf /etc/docker
    sudo rm -rf /var/lib/docker
    sudo rm -rf /run/docker.sock
    sudo rm -rf /etc/systemd/system/docker.service.d
    Now install again (in the same terminal used for the above commands) with:
    Code:
    sudo apt install docker-ce
    You'll see the same error as before, in my case it was a non-issue...."After a reboot" we have:

    Code:
    sudo service docker status
    [sudo] password for me: 
    ● docker.service - Docker Application Container Engine
       Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: e
       Active: active (running) since Sun 2019-06-09 13:56:57 MDT; 3min 52s ago
         Docs: https://docs.docker.com
     Main PID: 1214 (dockerd)
        Tasks: 13
       Memory: 128.1M
       CGroup: /system.slice/docker.service
               └─1214 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/contain
    
    Jun 09 13:56:50 me-ThinkPad-T430 dockerd[1214]: time="2019-06-09T13:56:50.405194
    Jun 09 13:56:50 me-ThinkPad-T430 dockerd[1214]: time="2019-06-09T13:56:50.405216
    Jun 09 13:56:50 me-ThinkPad-T430 dockerd[1214]: time="2019-06-09T13:56:50.405234
    Jun 09 13:56:50 me-ThinkPad-T430 dockerd[1214]: time="2019-06-09T13:56:50.439969
    Jun 09 13:56:52 me-ThinkPad-T430 dockerd[1214]: time="2019-06-09T13:56:52.106339
    Jun 09 13:56:52 me-ThinkPad-T430 dockerd[1214]: time="2019-06-09T13:56:52.443401
    Jun 09 13:56:56 me-ThinkPad-T430 dockerd[1214]: time="2019-06-09T13:56:56.566422
    Jun 09 13:56:56 me-ThinkPad-T430 dockerd[1214]: time="2019-06-09T13:56:56.725624
    Jun 09 13:56:57 me-ThinkPad-T430 dockerd[1214]: time="2019-06-09T13:56:57.348075
    Jun 09 13:56:57 me-ThinkPad-T430 systemd[1]: Started Docker Application Containe
    Installed:
    Code:
    apt show docker-ce
    Package: docker-ce
    Version: 5:19.03.0~2.2.rc2-0~ubuntu-disco
    Priority: optional
    Section: admin
    Maintainer: Docker <support@docker.com>
    Installed-Size: 107 MB
    Depends: docker-ce-cli, containerd.io, iptables, libseccomp2 (>= 2.3.0), libc6 (>= 2.17), libdevmapper1.02.1 (>= 2:1.02.97), libsystemd0
    Recommends: aufs-tools, ca-certificates, cgroupfs-mount | cgroup-lite, git, pigz, xz-utils, libltdl7, apparmor
    Conflicts: docker (<< 1.5~), docker-engine, docker-engine-cs, docker.io, lxc-docker, lxc-docker-virtual-package
    Replaces: docker-engine
    Homepage: https://www.docker.com
    Download-Size: 22.4 MB
    APT-Manual-Installed: yes
    APT-Sources: https://download.docker.com/linux/ubuntu disco/test amd64 Packages
    Description: Docker: the open-source application container engine
     Docker is a product for you to build, ship and run any application as a
     lightweight container
     .
     Docker containers are both hardware-agnostic and platform-agnostic. This means
     they can run anywhere, from your laptop to the largest cloud compute instance and
     everything in between - and they don't require you to use a particular
     language, framework or packaging system. That makes them great building blocks
     for deploying and scaling web apps, databases, and backend services without
     depending on a particular stack or provider.
    
    N: There are 5 additional records. Please use the '-a' switch to see them.
    And:
    Code:
    apt policy docker-ce
    docker-ce:
      Installed: 5:19.03.0~2.2.rc2-0~ubuntu-disco
      Candidate: 5:19.03.0~2.2.rc2-0~ubuntu-disco
      Version table:
     *** 5:19.03.0~2.2.rc2-0~ubuntu-disco 500
            500 https://download.docker.com/linux/ubuntu disco/test amd64 Packages
            100 /var/lib/dpkg/status
         5:19.03.0~1.5.beta5-0~ubuntu-disco 500
            500 https://download.docker.com/linux/ubuntu disco/test amd64 Packages
         5:19.03.0~1.4.beta4-0~ubuntu-disco 500
            500 https://download.docker.com/linux/ubuntu disco/test amd64 Packages
         5:19.03.0~1.3.beta3-0~ubuntu-disco 500
            500 https://download.docker.com/linux/ubuntu disco/test amd64 Packages
         5:19.03.0~1.2.beta2-0~ubuntu-disco 500
            500 https://download.docker.com/linux/ubuntu disco/test amd64 Packages
         5:19.03.0~1.1.beta1-0~ubuntu-disco 500
            500 https://download.docker.com/linux/ubuntu disco/test amd64 Packages
    ***Again if you do this on your own free will, Your Mileage May Vary.***
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  8. #38
    Join Date
    Jun 2019
    Beans
    21

    Re: Installing Docker on 16.04

    Still not winning

    Code:
    root@vps51801:~# sudo service docker status
    ● docker.service - LSB: Create lightweight, portable, self-sufficient containers
       Loaded: loaded (/etc/init.d/docker; bad; vendor preset: enabled)
       Active: failed (Result: exit-code) since Mon 2019-06-10 03:08:21 EDT; 2min 16
         Docs: man:systemd-sysv-generator(8)
      Process: 233 ExecStart=/etc/init.d/docker start (code=exited, status=1/FAILURE
    
    Jun 10 03:08:21 vps51801 docker[233]: mount: wrong fs type, bad option, bad supe
    Jun 10 03:08:21 vps51801 docker[233]:        missing codepage or helper program,
    Jun 10 03:08:21 vps51801 docker[233]:        In some cases useful info is found
    Jun 10 03:08:21 vps51801 docker[233]:        dmesg | tail or so.
    Jun 10 03:08:21 vps51801 docker[233]: rmdir: failed to remove 'cpuset': Read-onl
    Jun 10 03:08:21 vps51801 docker[233]: mkdir: cannot create directory 'cpu': Read
    Jun 10 03:08:21 vps51801 systemd[1]: docker.service: Control process exited, cod
    Jun 10 03:08:21 vps51801 systemd[1]: Failed to start LSB: Create lightweight, po
    Jun 10 03:08:21 vps51801 systemd[1]: docker.service: Unit entered failed state.
    Jun 10 03:08:21 vps51801 systemd[1]: docker.service: Failed with result 'exit-co

  9. #39
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Installing Docker on 16.04

    Your getting caught up with a couple of bad configs calling it to quickly>>ie:"Loaded: loaded (/etc/init.d/docker; bad; vendor preset: enabled)" and if you followed my instructions exactly, this is just not going to work as it should on your current system.
    And from what I can see I'm guessing your using "/etc/init.d/" instead of systemd as mine shows ie: "Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)"
    If possible I would encourage you to upgrade or re-install to 18.04, for both a higher version of the linux kernel, and better support for systemd services.
    I never asked why you are running kernel 2.6.32-042stab127.2, and I guess you have a reason but this is not going to give you any warm and fuzzy feelings here.
    Granted docker is a bit of problem installing but it should be doable with a proper environment. (Kernel and OS)
    I also have noticed that when using a "VPN" the first start of docker will fail, until you disconnect from the VPN, then start docker and a restart of your VPN.(This only has to be done once)
    I have now been able to install docker on All my linux installs. (Arch, Ubuntu, Fedora, and Some proprietary OS's etc)
    And out of curiosity did you reload the daemon:
    Code:
    sudo systemctl daemon-reload
    in order for the new settings to be loaded.(Also a reboot should have set it)
    Now it may be possible, (I said "May be") to fool around a bit with the "ExeStart" option.
    Show me this please:
    Code:
    sudo systemctl cat docker | grep ExecStart
    [sudo] password for me: 
    ExecStart=/usr/bin/dockerd -H fd://
    To view logs related to the Docker service, run the following command:
    Code:
    journalctl -u docker
    Will show something like a brief snip of mine:
    Code:
    -- Logs begin at Wed 2019-05-15 20:52:34 MDT, end at Mon 2019-06-10 10:21:11 MD>
    Jun 10 09:25:37 arch systemd[1]: Starting Docker Application Container Engine...
    Jun 10 09:25:37 arch dockerd[8894]: time="2019-06-10T09:25:37.293191565-06:00" >
    Jun 10 09:25:37 arch dockerd[8894]: time="2019-06-10T09:25:37.293357822-06:00" >
    Jun 10 09:25:37 arch dockerd[8894]: time="2019-06-10T09:25:37.293377499-06:00" >
    Jun 10 09:25:37 arch dockerd[8894]: time="2019-06-10T09:25:37.293481826-06:00" >
    Jun 10 09:25:37 arch dockerd[8894]: time="2019-06-10T09:25:37.293512441-06:00" >
    Jun 10 09:25:37 arch dockerd[8894]: time="2019-06-10T09:25:37.293592761-06:00" >
    Jun 10 09:25:37 arch dockerd[8894]: time="2019-06-10T09:25:37.333434451-06:00" >
    Jun 10 09:25:37 arch dockerd[8894]: time="2019-06-10T09:25:37.333932622-06:00" >
    Jun 10 09:25:37 arch dockerd[8894]: time="2019-06-10T09:25:37.334140112-06:00" >
    Jun 10 09:25:37 arch dockerd[8894]: time="2019-06-10T09:25:37.334486980-06:00" >
    Jun 10 09:25:37 arch dockerd[8894]: time="2019-06-10T09:25:37.334525204-06:00"
    You can also see: "Jun 10 03:08:21 vps51801 docker[233]: mount: wrong fs type, bad option, bad super block" on your last return.
    Well at the very least we can use this as a learning curve.
    Last edited by 1fallen; 2 Weeks Ago at 06:47 PM.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

Page 4 of 4 FirstFirst ... 234

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •