Questions tagged «container»

15
如何在后台模式下将bash或ssh放入正在运行的容器中?
我想ssh或bash到正在运行的docker容器中。请参见示例: $ sudo docker run -d webserver webserver is clean image from ubuntu:14.04 $ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 665b4a1e17b6 webserver:latest /bin/bash ... ... 22/tcp, 80/tcp loving_heisenberg 现在我想得到这样的东西(进入正在运行的容器): $ sudo docker run -t -i webserver (or maybe 665b4a1e17b6 instead) $ root@665b4a1e17b6:/# However when I …
933 bash  ssh  docker  container 


1
内核如何支持交换限制?
当我在带有内核3.8.0-19-generic的ubuntu 13.04上运行docker info命令时 我收到警告 no swap limit support 我该如何解决? 码头工人信息 Containers: 10 Images: 37 Driver: aufs Root Dir: /var/lib/docker/aufs Dirs: 59 WARNING: No swap limit support
17 kernel  container 

1
找不到单位docker.service
是否需要连接接口?还是这可能是防火墙问题? thufir@dur:~$ sudo snap install docker docker 17.06.1-ce from 'docker-inc' installed thufir@dur:~$ sudo service docker start Failed to start docker.service: Unit docker.service not found. thufir@dur:~$ sudo systemctl status docker Unit docker.service could not be found. thufir@dur:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 17.10 Release: …

1
为什么内核版本与Docker容器中的Ubuntu版本不匹配?
我有一个从Ubuntu 14.10构建的Docker容器。当我登录容器检查Ubuntu版本和内核版本时,会看到以下内容: root@~$>> lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.10 Release: 14.10 Codename: utopic root@~$>> uname -a Linux ambiata-aws 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux 我认为Ubuntu的14.10应该是内核版本3.16(为说明这里),所以为什么我的内核版本3.13.0-24泛型? 我问的原因是因为我希望在3.13.0-29-generic中有一个补丁(即在我的docker容器中对AUFS进行fallocate工作),在此进行讨论。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.