Code Monkey home page Code Monkey logo

cockpit-docker's People

Contributors

dependabot[bot] avatar mrevjd avatar psharma04 avatar xantios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cockpit-docker's Issues

After installing cockpit-docker I get an Ooops at the top for the plugin

After installing cockpit-docker I get an error for cockpit-docker

When checking the error in the browser I get this

Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self' https://xxxx:9090". Either the 'unsafe-inline' keyword, a hash ('sha256-BMIkowAqVEI88ibUJ1NtYB8ByZOuS4MTi73eGoFo2+Q='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.

Uncaught TypeError: Cannot read property 'text' of null at SiteDialog.setupAdd (contentScriptSiteDialog.js:1) at SiteDialog.setSiteDialogMessage (contentScriptSiteDialog.js:1) at SiteDialog.setup (contentScriptSiteDialog.js:1) at dialog.js:1 at D (dialogs.js:1) at e (dialogs.js:1) at Object.success (dialogs.js:1) at c (jquery-3.6.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-3.6.0.min.js:2) at l (jquery-3.6.0.min.js:2)

Uncaught ReferenceError: jQuery is not defined at Object.jquery (external "jQuery":1) at __webpack_require__ (bootstrap:19) at Module../pkg/docker/containers.js (docker.js:209491) at __webpack_require__ (bootstrap:19) at Object.0 (docker.js:216923) at __webpack_require__ (bootstrap:19) at bootstrap:83 at bootstrap:83 jquery @ external "jQuery":1 __webpack_require__ @ bootstrap:19 ./pkg/docker/containers.js @ docker.js:209491 __webpack_require__ @ bootstrap:19 0 @ docker.js:216923 __webpack_require__ @ bootstrap:19 (anonymous) @ bootstrap:83 (anonymous) @ bootstrap:83

I've got no idea what's wrong.

Docker page not scrollable?

I have noticed that the docker page is not scrollable - as in there are contents extending beyond the screen, but the page does not offer any abilities to scroll, I can't even select text and drag it down the page to make it move.

Is this affecting anyone else?

Getting error 400 client version 1.12 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version

I updated my Ubuntu server and I guess Docker might have decided to move on with a new API version. I was mainly wondering if anyone has found a work around besides switching to Podman and going with cockpit-podman.
Error - 400 client version 1.12 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version
Ubuntu 22.04.3 LTS
Docker version is 25.0.3, build 4debf4,
Docker compose is v2.24.5
image

Can not scroll the page

Hi, I recently built and installed your docker plugin for cockpit and everything works great, thanks for that. There is only one small issue - I can not scroll the docker page, so some of my containers are out of view. This happens only on this page, all other pages within my cockpit work fine. I know little about JS, so all I tried was looking through the css scheme, but couldn't find anything that would seem suspicious. Any help would be appreciated

NB: I built your plugin on x64 Debian VM, but using it on armhf raspberry pi OS - I believe this should have no effect on the functionality, due to the way the plugins work, but I could be wrong

to many symbolic links

I ran sudo ./install to install after I did I got this warning

(cockpit-bridge:2173): cockpit-bridge-WARNING **: 15:39:58.521: couldn't open file: /root/.local/share/cockpit/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker: Failed to open file ?/root/.local/share/cockpit/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker?: open() failed: Too many levels of symbolic links

then it shows me a list of apps. Cockpit is not showing docker. What am I doing wrong?

Installation assistance

The 3 lines of command is making and linking a DIR.
Then what, I clone this repo in my home folder and do the ./run -f ?
And do I already need cockpit installed, or will this launch cockpit inside a docker?

I am looking to add the container tab to my VPS with Cockpit installed on.

Dark Theme

Thanks for clonning this project, works very well with the latest version of Cockpit.
Any plans to add the dark theme to match the rest of the UI?

image

install fails

cockpit/cockpit-docker $ sudo ./install
Sending build context to Docker daemon 1.805MB
Step 1/4 : FROM node:12-alpine
12-alpine: Pulling from library/node
1a3a062e2a46: Already exists
5c011617ab43: Already exists
eb78b7190c82: Already exists
7c9d06233a93: Already exists
Digest: sha256:5d8b181a0738654bbe659a68879298f8d2d4256685282ee1c2330d97c33e3eee
Status: Downloaded newer image for node:12-alpine
---> 4fa66bcc90de
Step 2/4 : WORKDIR /app
---> Running in 8cd71e9e1fe4
Removing intermediate container 8cd71e9e1fe4
---> cd0a7a8c6fad
Step 3/4 : RUN apk update ; apk add git
---> Running in 0a857d9af763
failed to create endpoint suspicious_lumiere on network bridge: failed to add the host (vethd308777) <=> sandbox (vethc15c1cc) pair interfaces: operation not supported
Error: No such container: cockpit-docker
Unable to find image 'cockpit-docker:latest' locally
docker: Error response from daemon: pull access denied for cockpit-docker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
===> List of packages, if all went fine this list should container docker
apps Applications /usr/share/cockpit/apps
base1 /usr/share/cockpit/base1
metrics /usr/share/cockpit/metrics
network Networking /usr/share/cockpit/networkmanager
pcp /usr/share/cockpit/pcp
performance /usr/share/cockpit/tuned
shell /usr/share/cockpit/shell
ssh /usr/share/cockpit/ssh
static /usr/share/cockpit/static
storage Storage /usr/share/cockpit/storaged
system Services, Overview, Logs, Terminal /usr/share/cockpit/systemd
updates Software Updates /usr/share/cockpit/packagekit
users Accounts /usr/share/cockpit/users
checksum = 414b50723feb785395b413f5a125ab9e5db2bf9b3b4b1f26099ecfc0583c840e

Compatibility with CentOS 8 Stream and docker-ce?

I have compiled this and moved the dist into my cockpit directory /usr/share/cockpit.

However, it is not working with the following error:

Uncaught ReferenceError: jQuery is not defined
    at Object.jquery (docker.js:216946)
    at __webpack_require__ (docker.js:20)
    at Module../pkg/docker/containers.js (docker.js:209491)
    at __webpack_require__ (docker.js:20)
    at Object.0 (docker.js:216923)
    at __webpack_require__ (docker.js:20)
    at docker.js:84
    at docker.js:87

Looking at the docker/index.html file, it is expecting a jquery.js file under ../base1/jquery.js, but this file doesn't exist in this installation of cockpit.

# grep -n -i jquery docker/index.html -A5 -B5
23-    <title translate="yes">Containers</title>
24-    <meta charset="utf-8">
25-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
26-    <link href="../base1/patternfly.css" type="text/css" rel="stylesheet">
27-    <link href="docker.css" type="text/css" rel="stylesheet" id="term-style">
28:    <script src="../base1/jquery.js"></script>
29-    <script src="../base1/cockpit.js"></script>
30-    <script src="../*/po.js"></script>
31-    <script src="docker.js"></script>
32-</head>
33-<body class="pf-m-redhat-font" hidden>
# ls -lah | grep -i jquery
#

I'm not much of a web developer, any idea how this could be rectified or worked around?

Edit:

cockpit package:

# yum info cockpit
Last metadata expiration check: 2:29:47 ago on Tue Feb  2 12:20:11 2021.
Installed Packages
Name         : cockpit
Version      : 235
Release      : 1.el8
Architecture : x86_64
Size         : 56 k
Source       : cockpit-235-1.el8.src.rpm
Repository   : @System
From repo    : anaconda
Summary      : Web Console for Linux servers
URL          : https://cockpit-project.org/
License      : LGPLv2+
Description  : The Cockpit Web Console enables users to administer GNU/Linux servers using a
             : web browser.
             :
             : It offers network configuration, log inspection, diagnostic reports, SELinux
             : troubleshooting, interactive command-line sessions, and more.

Environment:

# cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

Not running

Hello,

Thanks for taking the time to fork this cool feature.
When i install it and click on docker (fork) top right shows "oops" in red, thats it. Logs output nothing.
Could you advise what/where to check?

Thanks again!

DeepinScreenshot_select-area_20210216222249
DeepinScreenshot_select-area_20210216222420
DeepinScreenshot_select-area_20210216222410

Can’t connect to Docker

Hi,

I have installed this in cockpit but is just getting a

Can’t connect to Docker

bad request

Hope you can help?

Thanks
Marinus

Looking for maintainers

I don't use cockpit anymore, if anyone is interesting in fixing this repo up feel free to do so.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.